473,594 Members | 2,713 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Challenging question regarding AJAX Toolkit AutoCompleteExt ender and URL rewriting

2 New Member
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
Mar 19 '08 #1
1 1865
maz00
2 New Member
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
Mar 19 '08 #2

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

Similar topics

0
2151
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 file: <add tagPrefix="asp" namespace="Microsoft.Web.Preview.UI" assembly="Microsoft.Web.Preview"/> <add tagPrefix="asp" namespace="Microsoft.Web.Preview.UI.Controls" assembly="Microsoft.Web.Preview"/>
11
16121
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 code into a page method. I have run the debugger only to find that the is never entered. Here are some of the things I have already tried with no success. It appears that this is a common problem. -Added the attribute to the top of the...
4
8729
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 filter a list from a database and populate some filtered options for the user to choose in a seperate listbox. Any subsequent key presses will further filter this result set.
1
1715
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 January CTP ASP.NET AJAX Control Toolkit. In the toolbox on left-side i get the following tab control AJAX Extensions.
0
4771
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 http://www.codeplex.com/AtlasControlToolkit/SourceControl/DownloadSourceCode.aspx?changeSetId=20574 which says it has fixed this exact problem. I still get the same behaviour. When I click on the scrollbar it collapses and loses focus of the textbox my code is as follows <asp:TextBox runat="server" ID="txtBarcodeProduct"...
2
8411
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 ID="MyTextBox" autocomplete="off"
7
1955
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 appear under that text box having all suburb name start with that character. How do I achieve that? Any hints…… Any help will be appreciated. Thanks,
4
5350
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 text field which causes the Autocomplete extender to display 10 like items, after the users selects an item (which is a key in the database) I want the application to go to the database retrieve a record and populate the fields.
4
11702
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 AutoCompleteExtender I want to automatically retreive data from the database and populate the fields on the screen. How do I trigger a server side event after the user selects an item from the AutoCompleteExtender or retrieve data from database on client side...
0
8372
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8003
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8234
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6654
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5739
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
3859
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3897
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2385
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1478
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.