Challenging question regarding AJAX Toolkit AutoCompleteExtender and URL rewriting

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • maz00
    New Member
    • Mar 2008
    • 2

    Challenging question regarding AJAX Toolkit AutoCompleteExtender and URL rewriting

    Hi guys,

    I'm running into an issue where my AutoCompleteExt ender 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=1 234 which works great. Except some components of AJAX Toolkit stopped working ex. AutoCompleteExt ender as soon as I do the URL rewrite.

    This is what I have in my global.asax

    HttpContext incoming = HttpContext.Cur rent;
    string oldPath = incoming.Reques t.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.Rewrit ePath(newPath);

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

    Thank you
    Maz
  • maz00
    New Member
    • Mar 2008
    • 2

    #2
    BTW, all you have to do to make AutoCompleteExt ender stop working is
    to add

    protected void Application_Beg inRequest(objec t sender, EventArgs e)
    {
    HttpContext incoming = HttpContext.Cur rent;
    string oldPath = incoming.Reques t.Path;
    incoming.Rewrit ePath(oldPath);
    }

    to Global.asax file. Anyone knows why?

    Thx

    Comment

    Working...