Delete textbox information when reload exists

0

I'm creating an ASP.NET web page and wanted to reload the site or press the "f5" key all the textbox data would change to "".

    
asked by anonymous 23.04.2018 / 17:14

2 answers

0

Just put textboxes to "" (null) when the page does Load ()

    
23.04.2018 / 18:57
0

As you are informed that you are not using PostBack for any operation, you can turn off ViewState. In the page declaration in your .aspx add the EnableViewState="false" attribute.

<%@ Page EnableViewState="false" ...
    
23.04.2018 / 17:34