Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
3
Reply
hello, I have buttons in my master page that allow users to nevigate in the site without log in. I...
s
Sep 4 2012 7:29 AM
3.2k
Reply
hello, I have buttons in my master page that allow users to nevigate in the site without log in. I aso have a shopping cart page and I want to check if the user is log in or not once the user click on button to select products. how can I do it?
I've tried if (HttpContext.Current.User.Identity.IsAuthenticated) Response.Redirect("~/CheckOut.aspx"); else Response.Redirect("~/Login.aspx", true);
and it doesnt work.
thanks.
p.s
what I mean is something like this site - if you want to write a post and you are not loged in it's redirect you to the login page.
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
3
)
Next Recommended Forum
System.Data.SqlClient.SqlException: String or binary data would be truncated. The statement has been terminated.
application integrate with Google docs