i was looking for that solution for a while... as far as i found out yes. Trying to clear all field programmatically with something like me.Controls never worked out for me within my datagrid itemTemplates.
my code wound up like yours but for 20 textboxes, 3 DDL's, and a radio button control...
whatta pain!
an option would be to do a history.back(0) to reset the page load in a Literal, or an asp:Hyperlink right back into the same page...
otherwise i think the only sollution would be to loop through all controls and depeding on the type to the necessary action (setting the index ro clearing the text)
--------------------------
"two wrongs don't make a right, but three lefts do" - the unknown sage
Belive it or not, more trouble is dropdown list. I use a variable to store the selecteditem.value. Sometime variable take the value, sometime does not.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.