What is the use of Add method of Session variable in Asp.net?

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

Add method is used to add key and value pairs in Session.
This is an alternate way to assign values to Session variables.

For Example:-

Session.Add("Name", "Vishal");

Session.Add("Email_Id", "vish@abc.co.in");

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response