Click here to Skip to main content
15,887,477 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
i have a requirement,
i have two textboxes and a submit button, i entered text in one textbox and i want to display the text in 2nd text box.
how to do it.
Posted

Handle the button Click event.
C#
TextBox2.Text = TextBox1.Text;
 
Share this answer
 
On textChange Event of textbox
C#
TextBox2.Text = TextBox1.Text;

or

use
javascript Onchange event in Javascript
 
Share this answer
 
Comments
VJ Reddy 14-Apr-12 5:44am    
The link is good for online testing. 5!
Nelek 14-Apr-12 9:48am    
Nice link.
ProEnggSoft 14-Apr-12 12:44pm    
Good link. +5
textBox2.Text = textBox1.Text.ToString();
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900