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.
Printable View
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.
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
Thanks!