Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Answer
Passing error message from controller to view
Shibly Sadik
9y
371
1
Reply
I want to do something like below.
//Controller
if(Session["UserId"]!=null) // If user is logged in
{
return View(db.Orders.ToList());
}
else
{
//return a error message on the same view
}
how to to that??
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
creating subdomains
asp.net using ajaxmodalpopExtender