Wednesday, February 16, 2011

Code Snippets C# - Session is Null in a Ashx File

What to do if a session is null in a Ashx File?

Because a Ashx File is a HttpHandler, you will just need to implement the interface IRequiresSessionState and your problem is solved.

Reference: http://msdn.microsoft.com/en-us/magazine/cc164128.aspx

2 comments:

  1. i have finished my projects with half percent of your snippets and hscripts.com.i searched this for last two months. Thank you so much.

    ReplyDelete
  2. I am glad the blog was usefull :) Thank you for the feedback

    ReplyDelete