Problem with controlling visibility of linkbutton
- From: Manny Chohan <MannyChohan@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 5 Apr 2005 08:11:07 -0700
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
.
- Follow-Ups:
- Re: Problem with controlling visibility of linkbutton
- From: Eliyahu Goldin
- Re: Problem with controlling visibility of linkbutton
- Prev by Date: Re: DropDownList Problem
- Next by Date: Newbie Needs Help!
- Previous by thread: session_start
- Next by thread: Re: Problem with controlling visibility of linkbutton
- Index(es):