How to add multiple values to the ViewData using asp.net MVC
- by kumar
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..