function ShowHide(id) { try { var e = document.getElementById(id); if(e.style.display == 'block' || e.style.display=='') e.style.display = 'none'; else e.style.display = 'block'; } catch(e) { alert( "Error in JS Function: 1" + e); } }
If Not IsPostBack Then AddAttributes() End If Private Sub AddAttributes() Try Hplink.Attributes("onclick") = "ShowHide('Panel1');" Hplink.Attributes("onclick") = "ShowHide('Panel2');" Hplink.Attributes("onclick") = "ShowHide('Panel3');" Hplink.Attributes("onmouseover") = "this.style.cursor='pointer'" Hplink.Attributes("onmouseout") = "this.style.cursor='pointer'" Catch ex As Exception End Try End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)