locked
HttpHandler with seperate code behind file RRS feed

  • Question

  • User1137338268 posted

    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.


    Ben Kwint

    Friday, October 21, 2011 5:49 AM

Answers