Click here to Skip to main content
15,886,799 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have a textbox when we put some value and click add button then this value add multiple textbox .
Posted
Comments
prashant patil 4987 17-Sep-12 2:10am    
improve your question.

If i am not wrong then you want to add your textbox value to some ohter textboxes. If It is so then here you go:-
On button_Click write following code:
C#
protected void button_Click(object sender, EventArgs e)
{
   //first retrieve the value of your textbox and store it into string
   string firstvalue = textBox1.Text;
   //then assign this string value to your rest of the textbox or label.
   textBox2.Text = firstvalue;
   textBox3.Text = firstvalue;
   label1.Text = firstvalue;
 }


I hope it will help you.

Good luck.
 
Share this answer
 
try using this code


C#
protected void button_Click(object sender, EventArgs e)
 {
    
   string multivalue = textBox1.Text.ToString();
  
    textBox2.Text = multivalue;
    textBox3.Text = multivalue;
   
  }
 
Share this answer
 
v2
Comments
Savalia Manoj M 17-Sep-12 3:05am    
What about old value??
This code replace Old Multiple Textbox value.
Is it right code??

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