How can we initialize Session variables in a user -defined class?

 Posted by Ddd on 3/6/2011 | Category: ASP.NET Interview questions | Views: 6025 | Points: 40
Answer:

example:
if there is a class known as demo and we want to initialze a Session variable
known as "aa", this will be the command

 HttpContext.Current. Session["aa"] = "welcome";


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response