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
parth gupta
NA
12
6.2k
How to use Tempdata on refresh page also?
Aug 23 2016 5:06 AM
// Took result from one ActionMethod and kept it in TempData
// THIS IS Controller
int result = objDB.InsertEmployementApplication(OM);
TempData.Keep("result");
//Action Method which gets Value is Index
public ActionResult Index()
{
Response.Write("result is" + TempData.Keep("result") + " Thankssss");
return View("Index");
}
// THE ERROR IS (Error 1 Operator '+' cannot be applied to operands of type 'string' and 'void' )
Reply
Answers (
2
)
how to send image by email in c#
How to learn MVC