TheRune
|
well I'm not sure if it will help, but here's the script which should collapse the sidebars - perhaps you can debug it? :)
Private Sub CollapseSidebar(ByVal ParamArray sidebars As String())
For Each sidebar As String In sidebars
Dim sb As Control = Me.FindControl(sidebar)
If Not IsNothing(sb) Then
If sb.Controls.Count = 0 And Not Me.Page.ClientScript.IsStartupScriptRegistered(sb.ID) Then
Me.Page.ClientScript.RegisterStartupScript(sb.GetType(), sb.ID, String.Format("jQuery(function() {{ artCollapseSidebar('.art-well I'm not sure if it will help, but here's the script which should collapse the sidebars - perhaps you can debug it? :)
[code]
Private Sub CollapseSidebar(ByVal ParamArray sidebars As String())
For Each sidebar As String In sidebars
Dim sb As Control = Me.FindControl(sidebar)
If Not IsNothing(sb) Then
If sb.Controls.Count = 0 And Not Me.Page.ClientScript.IsStartupScriptRegistered(sb.ID) Then
Me.Page.ClientScript.RegisterStartupScript(sb.GetType(), sb.ID, String.Format("jQuery(function() {{ artCollapseSidebar('.art-{0}') }});", sidebar), True)
End If
End If
Next
End Sub
[/code]') }});", sidebar), True)
End If
End If
Next
End Sub
|