Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

Is it possible to pass data from a web form to mvc controller(except query string). My application has different IIS pools for web form project and mvc project. Asp.net session doesn't work in mvc.

Here's an example:
(In aspx)
C#
string allowUpdate = "Yes";
Session["AllowUpdate"] = allowUpdate;


(In mvc controller, something like the following)
C#
string allowUpdate = Session["AllowUpdate"];

Or
C#
string allowUpdate = ViewData["AllowUpdate"];

Tried the above approaches but none of them worked. Could you please suggest some approach.
Posted
Comments
Jameel VM 28-May-13 4:41am    
did you try cookie?
sanket.raj8 28-May-13 5:56am    
That worked fine. Thanks. Any other possible way?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900