Jes Sie

Jes Sie

  • 668
  • 1.2k
  • 265.3k

Passing Session Variable from aspx.cs to ashx.cs

Mar 27 2024 4:48 AM

Good morning, everyone. I am passing a session variable from my aspx.cs to ashx.cs. However, I always get a null reference exception. Below is my code. 

this line: string InsuranceType = context.Session["InsuranceType"].ToString(); gets the null reference exception. 

Thank you so much for any help.


Answers (1)