J
jw56578
I want to iterate through the textboxes on a page and set their text
to an empty string. I do this on pre render. but if i use the
following code i cannot clear the text because a Control object has no
text property. What should i do.
foreach(Control c in Page.Controls)
{
if( c.GetType() == typeof( System.Web.UI.WebControls.TextBox ) )
{
//clear text
}
}
to an empty string. I do this on pre render. but if i use the
following code i cannot clear the text because a Control object has no
text property. What should i do.
foreach(Control c in Page.Controls)
{
if( c.GetType() == typeof( System.Web.UI.WebControls.TextBox ) )
{
//clear text
}
}