I have a form that once users select various options, it will postback to
itself and display a datagrid.
The form is in one panel and the datagrid is in another panel.
Within the formload event, I'm enabling or disabling the panel.
One of the challenges that I'm having is that I would like to have a "Reset"
button on my form to clear out the fields back to the default values. I'm
not exactly sure the best way to do this based on my design. I thought this
would be an easy thing to do, but when I hit Reset, the form posts back to
itself and then the datagrid tries to show.
Is there a way I can clear the form without doing a postback or at least
check to see what button was pressed within my formload...
I'm currently checking whether the form is in postback mode or whatever and
setting enabling the two panels appropriately.
Thanks for any help.