How to save the session value in database
I have a login form, when the user logins, a form appears and i want the details should be saved with the username who has login, the login value is passed in session but the view is strongly typed, so how should i save this new session value also in database

Sreekanth ReddyRank #726 · 3.2K reputationPosted Jan 20, 2019, 7:43 PM EST
Madan ShekarRank #428 · 5.9K reputationPosted Jan 20, 2019, 7:20 PM EST
Madan ShekarRank #428 · 5.9K reputationPosted Jan 20, 2019, 8:20 PM EST
MeetingDetails dataobj=new MeetingDetails();
db.MeetingDetails.Add(dataobj);
Madan ShekarRank #428 · 5.9K reputationPosted Jan 20, 2019, 7:44 PM EST
@ViewData["sessionvalues"]
sunny kumarRank #5,208 · 307 reputationPosted Jan 20, 2019, 8:00 PM EST
Madan ShekarRank #428 · 5.9K reputationPosted Jan 20, 2019, 8:04 PM EST
@ViewData["sessionvalues"]
that p tag holds your session data so assign this value to any textbox
in controller level using formcollection you will get the value.
Madan ShekarRank #428 · 5.9K reputationPosted Jan 20, 2019, 8:11 PM EST
sunny kumarRank #5,208 · 307 reputationPosted Jan 20, 2019, 8:15 PM EST