Last post Oct 21, 2011 11:34 AM by satalaj
Oct 21, 2011 05:49 AM|bkwint|LINK
Ladies and gentlemen,
i've been struggling with this for some time now. When i program a httpHandler ashx file the editor does not allow me to collapse code, which is quite frustrating, this made me look at getting a codebehind file for my ashx file.
According the the internet this is possible.
Just create an yourfile.ashx.cs file and put your code into it and set the CodeBehind attribute to the yourfile.ashx.cs file in your ashx file.
I've done all this. And i get the error Could not create type 'FileManager.filemanager' which is in the cs file.
My cs file contains a namespace FileManager with the class filemanager... Does anyone have an idea why it's not working. I'm using a webforms website.
Thanx in advance.
Oct 21, 2011 11:34 AM|satalaj|LINK
You can create a class library and add a Class inherited from IHttpHandler interface.
Configure your Class library assembly into web.config to handle GET or POST request.