Url rewriting and inner links

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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
 
I found the solution:

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

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

Steph
 
Back
Top