i have a page with 2 textbox items and a button
textbox1 contains a word , and textbox2 is empty
now i want to put content of TextBox1.Text in TextBox2.Text with button click,
i tried:
protected void Button1_Click(object sender, EventArgs e)
{ Page.FindControl("TextBox2").Text = TextBox1.Text; }
this code don’t work ,how to make this work?
2
Answers
try using this, referencing this article
you need to define it first then apply properties