how to use foreach loop to edit textboxes
- by Ramakrishna
foreach(textbox t in this.controls)
{
t.text=" ";
}
this is what i want to do. to clear all the textboxes in my page, at a time
but it gives an error like
Unable to cast object of type 'System.Web.UI.LiteralControl' to type 'System.Web.UI.WebControls.TextBox'.
plz tell me how to do this