Sitemap and Response.Redirect

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

Guest

I have an application that uses a navigation control based upon a sitemap.

One of the nodes in the sitemap is <siteMapNode url="~/MyPages/Tasks.aspx"
title="My Work" description="My Work" />

The application path is http://localhost/ScherzerPhase1

When I navigate using the control it all works correctly.

However when I use Response.Redirect("~/MyPages/User.aspx") it acts strangely.

The "My Work" link still shows as going to
http://localhost/ScherzerPhase1/MyPages/Tasks.aspx in the status bar, but
when clicked upon, it goes to
http://localhost/ScherzerPhase1/MyPages/MyPages/Tasks.aspx and errors out
(having an extra /MyPages in the URL).

Any ideas of what is causing this?

Thanks.
 
Hi Gerhard,

Thank you for your post!

I was unable to repro the problem you described, would you mind creating a
repro project and sending to my email address (removing the 'online.'
part)?

Have a nice day!

Regards,
Walter Wang
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Hi Gerhard,

Glad to know that the problem is resolved. If there's anything I can help,
please feel free to post here.

Have a nice day!

Regards,
Walter Wang
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top