i set session in ashx file but dont know how to get session value from ashx to aspx.
when pageload in need to get that session value in variable.
or i stored some value in a variable in ashx file then how to get that value in variable in aspx.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Ajay Saini125 reputationPosted Oct 30, 2015, 11:59 PM EDT
Var myvalue = '<%=HttpContext.Current.Session["test"].ToString()%>';
Hope it work for you.
Imtiyaz AnsariRank #1,031 · 1.9K reputationPosted Oct 30, 2015, 12:46 AM EDT
Ajay Saini125 reputationPosted Oct 30, 2015, 2:25 AM EDT
Durga VelusamyRank #4,868 · 321 reputationPosted Oct 30, 2015, 8:10 PM EDT
Durga VelusamyRank #4,868 · 321 reputationPosted Oct 31, 2015, 1:19 AM EDT
Ajay Saini125 reputationPosted Nov 1, 2015, 7:24 PM EST