开发者

view state in usercontrols

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜