By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,660 Members | 1,071 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,660 IT Pros & Developers. It's quick & easy.

Url rewriting and inner links

P: n/a
Hi,

I have a problem and I haven't found a good solution yet...

I'm using Url rewriting for my message board so it's more readable to have
something like mysite.com/1040/message.aspx instead of
mysite.com/message.aspx?id=1040

When a user posts a message, I use Response.Redirect to redirect him to its
message. It goes like that:

Response.redirect("message.aspx#last");

The thing is that when it comes to url rewriting, the # is translated in %23.

How can I add a inner link using url rewriting? Is it possible?

Thanks!

Steph
Nov 19 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a

try
Response.redirect("mysite.com/1040/message.aspx");

Nov 19 '05 #2

P: n/a
It works but I still can't add the inner link:

Response.redirect("mysite.com/1040/message.aspx#last");

It's still converted like:

Response.redirect("mysite.com/1040/message.aspx%23last");

Any other idea?

Steph
"Srim" wrote:

try
Response.redirect("mysite.com/1040/message.aspx");

Nov 19 '05 #3

P: n/a
I found the solution:

Simply add a "&" before the "#".

Response.redirect("message.aspx&#last");

Steph
"Stephane" wrote:
Hi,

I have a problem and I haven't found a good solution yet...

I'm using Url rewriting for my message board so it's more readable to have
something like mysite.com/1040/message.aspx instead of
mysite.com/message.aspx?id=1040

When a user posts a message, I use Response.Redirect to redirect him to its
message. It goes like that:

Response.redirect("message.aspx#last");

The thing is that when it comes to url rewriting, the # is translated in %23.

How can I add a inner link using url rewriting? Is it possible?

Thanks!

Steph

Nov 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.