Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / October 2005

Tip: Looking for answers? Try searching our database.

Url rewriting and inner links

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Stephane - 19 Oct 2005 00:34 GMT
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
Srim - 19 Oct 2005 05:13 GMT
try
Response.redirect("mysite.com/1040/message.aspx");
Stephane - 19 Oct 2005 13:16 GMT
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

> try
> Response.redirect("mysite.com/1040/message.aspx");
Stephane - 20 Oct 2005 16:07 GMT
I found the solution:

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

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

Steph

> Hi,
>
[quoted text clipped - 16 lines]
>
> Steph

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.