473,242 Members | 1,816 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,242 software developers and data experts.

Challenging question regarding AJAX Toolkit AutoCompleteExtender and URL rewriting

2
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
Maz
Mar 19 '08 #1
1 1850
maz00
2
BTW, all you have to do to make AutoCompleteExtender stop working is
to add

protected void Application_BeginRequest(object sender, EventArgs e)
{
HttpContext incoming = HttpContext.Current;
string oldPath = incoming.Request.Path;
incoming.RewritePath(oldPath);
}

to Global.asax file. Anyone knows why?

Thx
Mar 19 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: ack95 | last post by:
i am at a loss. i have been using the AutoCompleteExtender up until RC1. Now it is completely unresponsive and doesn't even throw a javascript error. I have added these sections to the config...
11
by: =?Utf-8?B?VHJlbnQ=?= | last post by:
I have tied an AutoCompleteExtender to a textbox to indicate suggestions to the user. Everything works fine if I utilize a webservice to fetch the results. However, I want to put the web service...
4
by: Grant Merwitz | last post by:
Hi I am trying to implement the Microsoft Ajax.NET extensions to perform a lookup on a key press of a text box. What this will do is once a user enters a letter into the textbox, this will...
1
by: sheenaa | last post by:
I want to use AJAX features in my ASP.NET with C# website application 2005. For that i have already installed the following onto my pc. ASP.NET 2.0 AJAX Extensions 1.0 ASP.NET AJAX Futures...
0
by: =?Utf-8?B?UmFjaGVs?= | last post by:
I have the AJAX toolkit version 1.0.10301.0. I have downloaded and recompiled with the changeset 20574 from...
2
by: Lloyd Sheen | last post by:
I am trying to get this to work. Basically copied the code from the toolkit but absolutely nothing happens. Any ideas?? The code was inserted into an existing page. <asp:TextBox...
7
by: SV | last post by:
I am using ASP.Net / VB.Net v 2005. I want to add text recognition to one of the text box of suburb in my form. What I want to do is when user type any character in that text box, one dynamic list...
4
by: Peter | last post by:
ASP.NET I have an application which use ASP.NET Autocomplete extender which works great. But I have a question how to update all the fields on the screen using Ajax. Users starts typing in a...
4
by: Peter | last post by:
ASP.NET 2.0 I have an AutoCompleteExtender which works fine- I am using name, id pair in the WebService , but what I am trying to do is: once the user selects an item from the...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.