Live Chat Icon For mobile
Live Chat Icon

When I use the Session in component class as Session(‘CustID’), I get error message ‘Session is not declared’. Why?

Platform: ASP.NET| Category: Session

Use HttpContext.Current.Session i.e

HttpContext.Current.Session('CustID') = '1'


HttpContext.Current.Session['CustID'] = '1';

Share with

Related FAQs

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

Please submit your question and answer.