Groups | Blog | Home
all groups > dotnet framework > march 2008 >

dotnet framework : Question regarding AJAX Toolkit AutoCompleteExtender and URL rewriting


maflatoun@gmail.com
3/19/2008 12:12:43 PM
Hi guys,

I'm running into an issue where my AutoCompleteExtender stops working
as soon as I make changes to my global.asax file for URL rewriting. I
just want to take a URL http://www.sample.com/file1234.aspx and pass
it to asp.net engine as http://www.sample.com/parse.aspx?id=1234 which
works great. Except some components of AJAX Toolkit stopped working
ex. AutoCompleteExtender as soon as I do the URL rewrite.

This is what I have in my global.asax

HttpContext incoming = HttpContext.Current;
string oldPath = incoming.Request.Path.ToLower();
string newPath = string.Empty;

I check the oldPath and parse the information that I need and assign
it to newPath and post for processing

incoming.RewritePath(newPath);

As soon as I remove global.asax from the site, my AutoCompleteExtender
starts working again. Any idea?

Thank you
maflatoun@gmail.com
3/19/2008 4:55:50 PM
[quoted text, click to view]
to add

protected void Application_BeginRequest(object sender, EventArgs e)
{
HttpContext incoming =3D HttpContext.Current;
string oldPath =3D incoming.Request.Path;
incoming.RewritePath(oldPath);
}
to Global.asax file. Anyone knows why?


Thx

AddThis Social Bookmark Button