Session as we know that,is used across the application and is used for storing any values.
Suppose,Session["Name"] is defined in Page Load Event
protected void Page_Load(object sender, EventArgs e)
Session["Name"] = "Vishal";
Output would be Vishal
var name = "<%=Session["Name"]%>";
Asked In: Many Interviews |