Why can’t the HTML reset button reset an ASP.NET form directly? Why do we need to write extra code to achieve the Reset function for an ASP.NET form?
I am looking for an explanation behind this.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
asp.net maintains its values in something called the ‘ViewState’.
This remembers values you have assigned to an input, so if you want to reset inputs, you have to clear them yourself.
You should read Understanding asp.net ViewState