Re-setting textbox controls in webforms
i have a webform in which there are several textbox controls. i want that when i press the reset button all the textbox controls should be cleared..how can i do ths by looping through the textbox controls.. i am using vb.net as code behind
its urgent
thanks in advance
AzeemuddinPosted Feb 6, 2007, 6:48 AM
Next put this code in the reset button onclick event
foreach(Control c in pnlEdit.Controls)
{
if (c is UI.TextBox)
(c as UI.TextBox).text = string.empty();
}