Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
5
Reply
Checking Accessibility of a View in MVC5
Sabab Zulfiker
Dec 20 2017 4:02 AM
148
Reply
In webform after log in into an account, we use the following code in the Page Load function of each .aspx file to check whether the page is accessible or not:
if (Session["User"]!=null)
{
Response.Redirect("LoggedIn.aspx);
}
What should I do for performing the same thing in MVC5 ??
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
5
)
Next Recommended Forum
Input string was not in a correct format.
MVC Excel Export - Object reference not set to an instance