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 ReddyPosted Jan 21, 2019, 12:43 AM
Madan ShekarPosted Jan 21, 2019, 1:20 AM
MeetingDetails dataobj=new MeetingDetails();
db.MeetingDetails.Add(dataobj);
sunny kumarPosted Jan 21, 2019, 1:15 AM
Madan ShekarPosted Jan 21, 2019, 1:11 AM
Madan ShekarPosted Jan 21, 2019, 1:04 AM
@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.
sunny kumarPosted Jan 21, 2019, 1:00 AM
Madan ShekarPosted Jan 21, 2019, 12:44 AM
@ViewData["sessionvalues"]
Madan ShekarPosted Jan 21, 2019, 12:20 AM