Is it necessary to reload the viewstate of usercontrols during postback? I 开发者_如何学Cwant to know in which case viewstate is set by default.
no it's not necessary that everytime view state of a usercontrol or webcontrol will be set.
it can be controled during page cycle if viewstate
properties of a control set =false
then it will not set while page is postback. autopostback.
you can also control viewstate properties of a usercontrol and webcontrol in pre_int stage of life cycle. you can also off tracing of view state in pre_int stage of life cycle
.
for more information link text
精彩评论