Want to build the ChatGPT based Apps? Start here
Become a member
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
C# Corner Home
Technologies
Monthly Leaders
ASK A QUESTION
Forum guidelines
Sabab Zulfiker
2.1k
85
22.8k
Checking Accessibility of a View in MVC5
Dec 20 2017 4:02 AM
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 ??
Reply
Answers (
5
)
Input string was not in a correct format.
MVC Excel Export - Object reference not set to an instance