My application uses its ownHttpHandler. I implementedIHttpHadlerFactory.As I have seen that, Ajax Asp.Net is uses several handler. That's why, In my application ajax is not working. Do you have any suggestion?
In web.config:
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/
<add verb="*" path="*.aspx" type="Groupcare.Web.UI.Handlers.GCHandlerFactory, GC.Web.UI.UIEngine"/>
</httpHandlers>
Your HttpHandler may interfere with partial postbacks. What you can do is check Request["X-MicrosoftAjax"]. In a partial postback, its value is "Delta=true". You can use that to have your handler abort on requests that are partial postbacks.
No comments:
Post a Comment