To reset all the textboex es on a webpage

Mar 21 2010 5:16 AM

foreach
(Control c in this.Controls)
{
if (c is TextBox)
c.Text =
string.Empty;


}
hi iam using this code to reset the all text box to empty in windows application but this code is not working in asp.net
please tell me what would be the code to reset all the text boxes on a webpage using asp.net

Answers (1)