How to get Table TD value from one View to another different View in MVC3

Posted by ramuvalmiki07-22001 under ASP.NET on 5/2/2013 | Points: 10 | Views : 891 | Status : [Member] | Replies : 1
Hii to all,
I have created two Views in MVC3 employee1 view and EmployeeEdit view, i have created a table in empoloyee1 view with fields like Empid,Ename,Task and more Field called Edit(Link Field)when ever employee clicks on Edit Link field we need to redirect to Editable view,in this Editable View i need the access respective rows Empid in Editable View,please tell me how can i access particular TD value From one View to different View


Thanks
Ramu




Responses

Posted by: Kmandapalli on: 5/2/2013 [Member] Silver | Points: 25

Up
0
Down
Hi,

In MVC, we have Tempdata. using this you can store the data that you want and call it anywhere, i mean either in another action method or another controller.
TempData.Clear();
TempData["EmpID"]=EmployeeId;
TempData.Keep();

Regards,
Shree M.



Kavya Shree Mandapalli

ramuvalmiki07-22001, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response