header image
 

Determine on the server side whether a Collapsible Panel is expanded or not

Just wanted to share some info here

 

Apparently the only way to determine on the server side whether a Collapsible Panel is expanded or not (based on client side actions) is as follows

 

CBool(CType(<your control’s server side id>.FindControl(“collapsiblePanelExtender_ClientState”), System.Web.UI.WebControls.HiddenField).Value)

 

If True -> Collapsed, If False -> Expanded

~ by shoel on September 23, 2010 .



Leave a Reply