Re: Redirect problems
Karen Healey <[email protected]> Wed, 19 Jun 2002 19:09:45 -0400
| Newsgroups | gmane.comp.windows.devel.dotnet.general |
|---|---|
| Message-ID | <05d801c217e6$6702f840$1670da18@HEALEY2002> |
I got the code from the www.ibuyspy.com. They had that tilda character all over their redirects. And it works on my PC. So, why won't it work on my hosting service? Thanks, Karen ----- Original Message ----- From: "Marsh, Drew" <[email protected]> To: <[email protected]> Sent: Wednesday, June 19, 2002 18:20 Subject: Re: [DOTNET] Redirect problems > 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. > You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.