Is it necessary to reload the viewstate of usercontrols during postback? I want 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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With