With reference to this -
I am having one asp.net page (Page1) with lots of controls (textbox, dropdownlist, radiobutton, checkboxes). Some of the controls are already prefilled like some radiobuttons are checked, dropdownlist already prefilled with some values. I eneterd some values in the controls.
On this page (Page1), there is one link "Clear Fields". Onclick of this link I reset all the controls.
document.forms.reset() -- using this I can reset the values successsfully
After this I submitted Page1, I have another page (Page2) on which there is one link which redirects me again to the same page (Page1) alongwith the values which I entered before submitting.
Now if I click on "Clear Fields" link, I am not able to reset values using "document.forms.reset()
What I want is -
I shouls be able to reset the values even after coming back to the Page1. But default values should be there (same as when you visit Page1 first time)
Can anyone help me!!
Thanks in advance,