Link to home
Start Free TrialLog in
Avatar of Albee_J
Albee_J

asked on

Visual Basic.net Hide Div based on login name

I am trying to figure out how to only show a div if a certain user is logged in.  I am using VB.net and Visual Studio 2005

ie.  <div id="Michael"> </div>

If LoggedIn = Michael then div.show

etc
ASKER CERTIFIED SOLUTION
Avatar of mohan_sekar
mohan_sekar
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Albee_J
Albee_J

ASKER

What is the correct syntax for this line

If 'LoggedIn' then

I can't get it to work
Avatar of Albee_J

ASKER

nevermind blonde moment figured it out

    If User.Identity.Name = "michael" Then
            Michael.Visible = True
        End If