Last post Aug 16, 2010 02:52 PM by Menno van den Heuvel
Aug 16, 2010 08:50 AM|developer82|LINK
I hope this is the right place to ask this question.
I'm trying to make a control class library. I want to have a GenericHandler as a WebResource so I could call it from the web project that will use that control.
I need this handler will get parameters from the query string and return JSON data acourding to what it get in the QS.
I know how to create JS and images WebResources, so I tried the same on a generic handler I added to the class library project but all it does is return the source of the handler file and not the result.
Is what I'm trying to do possible? If so, what should I do?
Aug 16, 2010 02:52 PM|Menno van den Heuvel|LINK
I've tried to do the same thing, and I suspect what you're trying to do isn't possible. The asp:Chart control basically does the same thing, and it also needs to register its own httphandler in the web.config. The reason you can serve embedded resources
the way you can is only because webresource.axd is always registered by default. So it's probably a "no".