Hello can anybody write me how to clear text from texbox after I click on button
Hi
on Button's Click event (after you've read the Text) set
[VB]
TextBox1.Text = ""
[C#]
TextBox1.Text = "";
assuming your TextBox's ID isTextBox1
Use something like this in the click event handler of the button:
TextBox1.Text = "";
(where TextBox1 is the ID of your text box)
Regards,
Martin
This method: TextBox1.Text = ""; is not fast, because you make request on server ,optimal use JavaScript on ClientMachine:function f(){tbx.value="";}
0 comments:
Post a Comment