Solved

Add the Text of one other Textbox

Posted on 2014-02-23
3
234 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
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 …
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…

743 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

17 Experts available now in Live!

Get 1:1 Help Now