Re: Redirect problems

"Marsh, Drew" <[email protected]> Wed, 19 Jun 2002 18:20:01 -0400
Newsgroups gmane.comp.windows.devel.dotnet.general
Message-ID <[email protected]>
Karen Healey [mailto:[email protected]] wrote:

> I have relative redirects in my code like this:
>
> Response.Redirect("~/DesktopDefault.aspx?tabindex=" +
> tabIndex + "&tabid="
> + tabId + "&menuid=" + menuItem.MenuItemId.ToString() +
> "&menuindex=" +
> menu.SelectedIndex);

Just get rid of the ~, like so: "/DesktopDefault.aspx?...etc..."

HTH,
Drew

[ .NET MVP | weblog: http://radio.weblogs.com/0104813/ ]

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.