EnableViewState property in text box

Can someone tell me that we can use the enableviewstate property of the text box in asp.net. By making it false or true, how can we feel the difference in results.

+3
source share
5 answers

By default, ASP.NET has EnableViewState set to true, so when you call back, the values ​​are stored in text blocks.

If you set it to false and postback, ka-boom ! The value no longer exists :)

+3
source

, . , , Visible, Enabled, Appearance, CssClass, BackColor .., , .

( ) - - , . , , , , POST ( Request.Form). , false. , -.

+6

EnableViewState = true, . false, TextBox , , .

+1

enableviewstate = true, , postback

0

This property is used to determine whether to save the value after the postback or not. If it sets to false, the value will not be saved with every postback. Everything that is entered by the user will disappear. And in the case of a text field, you should not change this property in most cases, or I can say all cases.

0
source

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


All Articles