Response.Redirect not working in .net 4

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

The problem appeared only after updating 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 Internet, but there was no solution, and that was for the candidate for the release of http://forums.asp.net/t/1527814.aspx

+3
source share
2 answers

Do you use the Ajax Control toolkit? The same thing happened to me, and the fix was to download the toolkit for .net 4.0. I used the ToolkitScriptManager, which may have been the main issue, but the new Ajax Toolkit for .net 4.0 seems to have solved it!

+3
source

I was getting the same problem as an extra coded slash as a suffix for table.ListActionPath.
Very annoying, but this is due to the above requirement to update Ajax toolkit 3.5 -4.

-1
source

Source: https://habr.com/ru/post/1741092/


All Articles