• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 256
  • Last Modified:

Add the Text of one other Textbox

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
HuaMinChen
Asked:
HuaMinChen
  • 2
1 Solution
 
Sar1973Commented:
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
 
HuaMinChenBusiness AnalystAuthor Commented:
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
 
Sar1973Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now