473,411 Members | 1,991 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,411 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 1854
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.