I have an asp.net web page that displays data that was returned from the database. However, when I attempt to click "Reset" (<input id="btnReset" type="reset" value="Clear" />)
the button doesn't do anything.
Asked
Active
Viewed 2,546 times
2

user279521
- 4,779
- 21
- 78
- 109
2 Answers
5
The reset button will only erase the data the user entered after the page was rendered. So if you dont make any changes in the page, the reset button wont do anything.
Also, Reset is a client side operation. it wont post-back the page to the server.

Nimesh Madhavan
- 6,290
- 6
- 44
- 55
-
Succinct explanation and the solution to my "Why isn't the reset button working" woes. – janoulle Aug 12 '14 at 20:56
1
you are probably looking for this
<asp:Button id="btnReset" Text="reset it!" runat="server" onclick="btnReset_onClick" />
so you can do stuff in your codebehind

JP Hellemons
- 5,977
- 11
- 63
- 128