I have a page that is divide into three parts
1)
5 textboxes and a search and reset button
2) A datagrid which is filled when the user enter some criterias in any of the textboxes and click search
3)Another datagrid which is independent of 1) and 2)
My problem is: The user has entered a few values in the searchboxes and clicked search, the datagrid in 2) is filled and has a viewstate. But how should I code the reset button? I want to remove the viewstate of 1) and 2) and restore them to the original values (like when the page is loaded)
I would hate to do it like in asp with text1.text = "" etc etc Isn't there any way to just remove viewstate for the controls upon reset?
if I had 2 forms it would be easy, but since 3) is separate from 1) and 2) it is a bit harder...
Any help?
kind regards
Henrik


Reply With Quote