G
Guest
Hi Guys, i have the following linkbutton with visibility conditionally
controlled from codebehind:
<asp:LinkButton id="test" style="Z-INDEX: 101; LEFT: 464px; POSITION:
absolute; TOP: 160px" runat="server" Visible="<%# boolVisible
%>">LinkButton</asp:LinkButton>
In Codebehind:
Public boolVisible As Boolean
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Init
If (Convert.ToString(Session("glVar_gAdmin")).Equals("G")) Then
boolVisible = True
Else
boolVisible = False
End If InitializeComponent()
End Sub
Funny part is that i have same code on other page and it works perfectly. I
dont know what am i doing wrong..Can someone shed some light on this>?
thanks
Manny
controlled from codebehind:
<asp:LinkButton id="test" style="Z-INDEX: 101; LEFT: 464px; POSITION:
absolute; TOP: 160px" runat="server" Visible="<%# boolVisible
%>">LinkButton</asp:LinkButton>
In Codebehind:
Public boolVisible As Boolean
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Init
If (Convert.ToString(Session("glVar_gAdmin")).Equals("G")) Then
boolVisible = True
Else
boolVisible = False
End If InitializeComponent()
End Sub
Funny part is that i have same code on other page and it works perfectly. I
dont know what am i doing wrong..Can someone shed some light on this>?
thanks
Manny