How to stop the browser that saves the form data that the user entered in the text fields

I don’t know if this was a simple task or not, but I tried to do a google search but didn’t find anything.

I have an asp.net form and the user enters some data into the text fields. Whenever a user submits a form, the browser saves the data of this form. I do not want the data of this form to be stored in the browser. How can I limit the browser to save this form data without touching the browser settings?

The application is developed using asp.net, and plain text fields are used here.

+3
source share
2 answers

, , , .. ?

<input type="text" name="text1" autocomplete="off">

FF IE, XHTML:

<form name="form1" id="form1" autocomplete="off" />

, autocomplete HTML 5, , HTML 4.

, PostBack :

TextBox.Text = string.Empty;
+9

asp:TextBox "[...] [...]", ControlState . , ControlState (MSDN).

0

Source: https://habr.com/ru/post/1757772/


All Articles