Ajax.NET (cookieless support)

Michael Schwarz on Monday, May 30, 2005

There is a new version available at http://ajax.schwarz-interactive.de [1]. Feel free to download the version with following fixes:

I hope the next version will using IHttpAsynHandler instead of IHttpHandler.

I also added a IHttpModule example how to implement your own security:

internal class AjaxSecurityModule : IHttpModule { private void context_BeginRequest(object sender, EventArgs e) { HttpRequest request = HttpContext.Current.Request; if(request.HttpMethod != "POST" || !request.RawUrl.ToLower().StartsWith(request.ApplicationPath.ToLower() + "/ajax/") || !request.Url.AbsolutePath.ToLower().EndsWith(".ashx")) return;

if(request.UserHostAddress == "") { HttpResponse response = HttpContext.Current.Response; response.Write("new Object();r.error = new ajax_error('error','description',0)"); response.End(); return; } } }