Url rewriting and inner links

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
 
G

Guest

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
 
G

Guest

I found the solution:

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

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

Steph
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top