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
ie. <div id="Michael"> </div>
If LoggedIn = Michael then div.show
etc
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
nevermind blonde moment figured it out
If User.Identity.Name = "michael" Then
Michael.Visible = True
End If
If User.Identity.Name = "michael" Then
Michael.Visible = True
End If
ASKER
If 'LoggedIn' then
I can't get it to work