In asp.net 2.0, I load a user control dynamically using LoadControl(). The user can do postbacks in this control. I use ViewState[] to keep track of several variables. At some point, the aspx page will Remove() the user control and completely unload it. Does this clear out the ViewState[] variables used by the user control? If not, what is the best way to clear it?
Our community of experts have been thoroughly vetted for their expertise and industry experience.