Home » FAQ » ASP.NET » Custom Controls » How can I define a Hashtable to store session variable?
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';
Platform BlazorASP.NETWinFormsWPF.NET MAUI
Question *
Answer (Optional)
Email (Optional)
Email address is only for further clarification on your FAQ request. It will not be used for any other purpose.
Please leave this field empty.
Share with