Problem with collapsiblepanelextender
CollapsiblePanelExtender inside user control not remembering its client state
Hi i have a user control being loaded dynamically. Inside this user control i have a CollapsiblePanel when i have a button inside or outside the collapsable panel and create a post back it does not remembe开发者_StackOverflowr the CollapsablePanels State. I have copied the code exactly from toolkit into empty user control and same thing happens as previously. I also paste the same code onto a blank aspx page and it works as it should.
Has anyone run into this problem and if so if you could provide some help that would be great. As i have been on this problem for a while now
After loaded the user control, do you set a unique id?
var control = LoadControl("my.ascx");
control.ID = "MyAscxID";
....
If not, your viewstate won't be restored.
精彩评论