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
Solved

Add the Text of one other Textbox

Posted on 2014-02-23
3
238 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
This article discusses how to create an extensible mechanism for linked drop downs.
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…

861 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