Reputation:
In a controller in MVC 3. I have
Session.Add("FacilityID", facility.FirstOrDefault().Name);
Now in a web form, I want to use it.
var x = "this session"; // how to? Thanks.
Upvotes: 0
Views: 146
Reputation: 3548
Supposing you want to do something with the FacilityID in your web form:
var x = Session["FacilityID"];
Upvotes: 1