1
Answer

Passing Session Variable from aspx.cs to ashx.cs

Jes Sie

Jes Sie

Mar 27
314
1

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)