Frequently Asked Interview Questions

How do you store Data in Session?

//To store userId in session
Session[“userId”] = “user1”;

//To retrieve data from session
String UserId = Convert.ToString(Session[“userId”]);

Most Visited Pages

Home | Site Index | Contact Us