Live Chat Icon For mobile
Live Chat Icon

How can I define a Hashtable to store session variable?

Platform: ASP.NET| Category: Custom Controls

We can define a hashtable to store a session variable as

Session['sessionVaribale']=new Hashtable();

Then the values can be stored as

((Hashtable)Session['sessionVariable'])['hashKey']='value1';

Share with

Share on twitter
Share on facebook
Share on linkedin

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.