473,320 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,320 software developers and data experts.

URL rewriting and querystrings

Hi all,

I have succefully implemented url rewriting into my application using
the instructions from here,

http://www.codeproject.com/aspnet/URLRewriter.asp

All is well except i would like to ocassionally use a querystring as
well..

so instead of page.asp?Id=100&Error=true

it would be page100.aspx?showerror=true

If i do this at the moment it finds the page but ignores the
querystring.. Any ideas please as without this i will have to lose the
rewriting

Thanks
Anthony
Nov 18 '05 #1
1 1072
Hi Anthony:

Take the query string parameters and put them into the Context.Items
collection. This is the most effecient way of communicating from the
pipeline to the page handler.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On 26 Oct 2004 09:17:20 -0700, an***********@hotmail.com (Anthony)
wrote:
Hi all,

I have succefully implemented url rewriting into my application using
the instructions from here,

http://www.codeproject.com/aspnet/URLRewriter.asp

All is well except i would like to ocassionally use a querystring as
well..

so instead of page.asp?Id=100&Error=true

it would be page100.aspx?showerror=true

If i do this at the moment it finds the page but ignores the
querystring.. Any ideas please as without this i will have to lose the
rewriting

Thanks
Anthony


Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: JA | last post by:
I have this little tell-a-friend script that will send out a link back to the site. I want to put a link on my product pages that will go to the script, and have the script display the product...
1
by: Amy | last post by:
I am having a strange problem. I pass data as a querystring from an aspx page to an asp page to generate an email. THe data is then used to go back to the original page and allow access based on...
3
by: Michael Appelmans | last post by:
I'm trying to use a rule based URL rewrite application which uses HttpApplication.RewritePath. I keep getting "rsource not found" error in application when running on shared web host although the...
2
by: R-D-C | last post by:
Can these two functions coexist? We have a web site where the querystrings are removed using URL Rewriting. Instead the page appears to be a html page with a long name (containing what would be...
0
by: Lee | last post by:
Hi all ;) Preamble -------- I'm using URL rewriting to enforce a frames policy (yeah, I know frames are 'bad' :) - i.e. if a request comes in for a page which should be nested within a...
11
by: thogek | last post by:
We've been working with the ASP.NET 2.0 sitemap functionality, and one problem we're currently having is a need to be able to generate a web.sitemap file that includes URLs containing querystring...
1
by: Chris | last post by:
I want to rewrite URL's from asp type ones with querystrings to more search engine friendly ones. I was looking at two options: isapirewrite or a bit of a hack which replaces the 404 page with a...
1
abehm
by: abehm | last post by:
Hi, I'm trying to pass multiple values through querystrings to another page where i will parse them to individual variables. I have one method to create the querystrings before they pass, but for...
2
by: Seth Williams | last post by:
The first scenario is that I want to create one website for a particular industry - let's say for Farm Machinery so I have a shared hosting site called myFarmMachinery.com But I want to sell...
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: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
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
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.