Solved

Add the Text of one other Textbox

Posted on 2014-02-23
3
235 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
  • 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 10

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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…

867 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now