473,320 Members | 1,848 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.

Forcing browser to reload the "same page" with "mapped URL"

I have a website that uses querystrings on a certain page to show multiple
contents.
I have created mapped pages to hide the gory details of these querystrings.

So instead of details.aspx?ID=kldjlkdjldsjlkds&cat=jjfjfj
the client sees products.aspx

I also use these "mapped" pages in my sitemap file.

This site is multilingual so I have buttons on the page to switch languages.
The switch works except that the thing insists on going to
details.aspx?ID=kldjlkdjldsjlkds&cat=jjfjfj instead of products.aspx. This
spoils the breadcrumbs that are linked to the sitemap file.

The code I use is as simple as :
Me.Page.Response.Redirect(Me.Page.Request.RawUrl.T oString, True)
(rawurl contains products.aspx)
Can somebody tell me what I am doing wrong ?

Thanks a lot.

Mar 28 '08 #1
3 2295
Can you post a "Short but complete" code sample that illustrates your issue?

-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short Urls & more: http://ittyurl.net
"Willy" wrote:
I have a website that uses querystrings on a certain page to show multiple
contents.
I have created mapped pages to hide the gory details of these querystrings.

So instead of details.aspx?ID=kldjlkdjldsjlkds&cat=jjfjfj
the client sees products.aspx

I also use these "mapped" pages in my sitemap file.

This site is multilingual so I have buttons on the page to switch languages.
The switch works except that the thing insists on going to
details.aspx?ID=kldjlkdjldsjlkds&cat=jjfjfj instead of products.aspx. This
spoils the breadcrumbs that are linked to the sitemap file.

The code I use is as simple as :
Me.Page.Response.Redirect(Me.Page.Request.RawUrl.T oString, True)
(rawurl contains products.aspx)
Can somebody tell me what I am doing wrong ?

Thanks a lot.
Mar 30 '08 #2
Hello George,

All I needed to do was add code
Protected Sub Page_PreRender(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.PreRender
Me.Context.RewritePath(Me.Request.RawUrl)
End Sub
to my page to make it work. I didn't know about the *rewritePath* trick.
But it will sure go into my basket
I checked with SiteMapPath control and this one is also very happy.

Thanks a lot.
Van den Driessche Willy.

Apr 3 '08 #3
Cool, that was easier than I thought.
I thought that RawUrl will point to already rewritten Url.

George.

"Willy" <wi**************************@skynet.bewrote in message
news:1F**********************************@microsof t.com...
Hello George,

All I needed to do was add code
Protected Sub Page_PreRender(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.PreRender
Me.Context.RewritePath(Me.Request.RawUrl)
End Sub
to my page to make it work. I didn't know about the *rewritePath* trick.
But it will sure go into my basket
I checked with SiteMapPath control and this one is also very happy.

Thanks a lot.
Van den Driessche Willy.

Apr 4 '08 #4

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

Similar topics

8
by: joe | last post by:
Can anyone help me out by either telling me how to get to the result i need or by pointing me to some documentation about the following question: A certain query to a database give me eg 100...
2
by: Stephen Ferg | last post by:
There are a couple of broken links on the Python Eggs site: http://www.python-eggs.org/links.html I'd like to reach the maintainer and report them, but there's no information about the...
2
by: Simon Wigzell | last post by:
I'm on a different computer running win 95 with IE 5 my website on a new dedicated server and I'm getting "Done, but with errors on page" appearing in the browser status area which I have never...
6
by: The Bicycling Guitarist | last post by:
I've used and loved the webmaster tools at Delorie.com for some years now. I just added some more text content to my home page, but in the web page "purifier" the text doesn't render as I thought...
4
by: Jim | last post by:
Hey guys I have this page that uses a small script that changes the button image when the button is clicked. The problem is that when clicked, the page suddenly "jumps" to the top. I have purposly...
10
by: Roland | last post by:
Hello, the example code is the following(the number in parentheses at the beginning are just for reference)(The complete HTML file is at the end of this article): (1)window.location =...
12
by: Lee David | last post by:
How do you track down this to where the error actually is? TIA, Lee
3
by: NuB | last post by:
I have a C# web form that allows the user to perform a search if all the required fields are filled in, which works fine, my issue is if a user does a sucessfull search then enters in data and...
4
by: soren625 | last post by:
What I am trying to do is grab a little snippet of data from a remote page based on user input in a form. Take a look at this page: http://www.qrz.com/kb2gsd What I want to do is: when a user...
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: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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...
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...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.