Need help with AJAX issue.
I have certain controls on an ASPX page that uses AJAX to handle async.
I also have an HttpModule for a particular site that intercepts and filters the HttpRequest.
After installing the module, the AJAX controls are broken. It seems that these controls are not coming back with AJAX Post. With this, the HttpModule code:
public void Init(HttpApplication context)
{
context.ReleaseRequestState += new EventHandler(InstallResponseFilter);
}
public void Dispose()
{
}
private void InstallResponseFilter(object sender, EventArgs e)
{
HttpResponse response = HttpContext.Current.Response;
if (response.ContentType == "text/html")
{
response.Filter = new MyFilter(response.Filter);
}
}
Any ideas? Thanks
source
share