Response.Redirect doesn't work in .net 4

Posted by Stephen lacy on Stack Overflow See other posts from Stack Overflow or by Stephen lacy
Published on 2010-04-14T13:17:13Z Indexed on 2010/04/15 4:13 UTC
Read the original article Hit count: 350

where used on http://localhost:8692/Contacts/Default.aspx Response.Redirect("http://www.google.com") redirects to http://localhost:8692/Contacts/http%3a%2f%2fwww.google.com

The problem just appeared once I upgraded to .Net 4

Edit: Response.Redirect("~/Contacts/MemberDetails.aspx?Id=3") goes to http://localhost:8692/Contacts/%2fContacts%2fMemberDetails.aspx%3fId%3d1

I found one mention of this on the web but no solution and it was for the release candidate http://forums.asp.net/t/1527814.aspx

© Stack Overflow or respective owner

Related posts about asp.net-4.0

Related posts about asp.net-webforms