How to remove item or key at specified position in Session?

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

RemoveAt() static method of Session variable is used to remove keys or items at specified position.

For Example:-
Session.Add("Name", "Vishal");

Session.Add("Email_Id", "vish@abc.com");
Session.Add("Ph-No", "1234567890");

Session.RemoveAt(1);


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response