How to assign value to Session variable?

 Posted by vishalneeraj-24503 on 12/23/2013 | Category: ASP.NET Interview questions | Views: 793 | Points: 40
Answer:

It's very easy to assign values to Session variables.

In C#,we write

Session["Name"] = "Vishal";


In VB.Net,we write

Session("Name") = "Vishal";


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response