Any thoughts on how to do this? Make all of them on a page collapse or expand. Seems like it shouldn't be terribly hard.
Any thoughts on how to do this? Make all of them on a page collapse or expand. Seems like it shouldn't be terribly hard.
Sean
Some days when I think about the next 30 years or so of my life I am going to spend writing code, I happily contemplate stepping off a curb in front of a fast moving bus.
assuming your CollapsiblePanelExtender are inside Form tag having id form1, this should work:
1.Collapse All
2.Expand AllCode:Dim ccpe = From n In form1.Controls Where n.GetType().ToString = "AjaxControlToolkit.CollapsiblePanelExtender" Select n 'Collapse For Each ctl In ccpe ctl.Collapsed = True ctl.ClientState = True Next
Code:Dim ccpe = From n In form1.Controls Where n.GetType().ToString = "AjaxControlToolkit.CollapsiblePanelExtender" Select n 'Collapse For Each ctl In ccpe ctl.Collapsed = False ctl.ClientState = False Next
__________________
Rate the posts that helped you
Thanks!
Sean
Some days when I think about the next 30 years or so of my life I am going to spend writing code, I happily contemplate stepping off a curb in front of a fast moving bus.