View status in usercontrols

Do I need to reload viewstate usercontrols during postback? I want to know in which case the default viewstate is set.

+3
source share
1 answer

No, it is not necessary that each user displays the status of usercontrol or webcontrol. it can be controlled during the page loop, if the viewstateproperties of the control set =false, then it will not be set until the page is returned. AutoPostBack

You can also control the viewstate properties of user control and web control during the pre_int lifecycle stage. you can also off tracing of view state in pre_int stage of life cycle. for more information link text

+1

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


All Articles