TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Gary
NA
1
0
how do i find the status of loginstatus?
Jan 10 2006 2:49 PM
Hello i am using visual studio and c# for a project at university. I have only just started using c# I have a website which you can log in and out of. I have a lable on my site that contains text saying "you are logged in as:" next to it is the [loginname]. i want to be able to hide the lable when nobody is loged in. and reveal the lable when they are. i know i can use .visible = true/false on the lable. i also realise it needs to be in an if statement. How do i retrieve the status of the login status? i have tried putting if (loginstatus = true) when i do this it says: "CS0118: 'System.Web.UI.WebControls.LoginStatus' is a 'type' but is used like a 'variable'" is it possible to retrieve the status of the login status to use it as a condition?
Reply
Answers (
1
)
Gridview - ObjectDataSource - How to retrieve values from rows...
Serial Communication in VISUAL STUDIO .NET 2005