Solved

Add the Text of one other Textbox

Posted on 2014-02-23
3
243 Views
Last Modified: 2014-02-24
Hi,
I want to add the Text of one other Textbox into the message of the Panel below. How?
	<asp:panel id="myPanel2" runat="server">
		Message for ?
		<br /><br />
		...

Open in new window

BTW, the panel is also being shown on the beginning of the page, when running the deployed project. How to hide the panel there?
0
Comment
Question by:HuaMinChen
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 9

Expert Comment

by:Sar1973
ID: 39881946
Set: value="myText" inside the HTML to place your default text value.
Set: document.getElementById("myPanel2").style.display="none"/"inline"; as a script to show or hide the object.
0
 
LVL 11

Author Comment

by:HuaMinChen
ID: 39881978
I want to append the text of one Textbox, like
tb1.Text

into this part

Message for ?

Open in new window


of the panel. How?
0
 
LVL 9

Accepted Solution

by:
Sar1973 earned 170 total points
ID: 39882091
Try:
document.getElementById("myPanel2").value="Message for "+tb1.Text;
Otherwise, you could inner the text with:
document.getElementById("myPanel2").innerHTML="Message for "+tb1.Text;
0

Featured Post

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question