How to add multiple values to the ViewData using asp.net MVC
Posted
by kumar
on Stack Overflow
See other posts from Stack Overflow
or by kumar
Published on 2010-05-27T16:46:36Z
Indexed on
2010/05/27
17:31 UTC
Read the original article
Hit count: 401
ASP.NET
|asp.net-mvc
Hello Friends,
I have one ActionResult method
public ActionResult StudentInfo(string id,string studentType)
{
var Info= Student.GetStudentInfo(Convert.ToInt32(e),studentType);
return PartialView(Info);
}
}
This ActionResult is executed multiple time accoording the number user selected from previous page..each and every student id and StudentType is passed by that view to this ActionResult.
my question is there any way that in ViewData we can store all these id's and studentType's so that I can use these id' and StudentType's in other ActionResult?
bec I need only these two things in other ActionResult?
I can implement this using cache but I dont want to do with that.
thanks for patience..
© Stack Overflow or respective owner