The Following code returns http://localhost:23843/home/GetBooksTitles?partial=yes&typeofbook=livre
instead of http://localhost:23843/home/GetBooksTitles?partial=yes&typeofbook=livre
. It returns &
instead of &
.
How do I tell dotnet not to encode url like that ?
var url = '<%: Url.Action("GetBooksTitles","home",
new { partial="yes",typeofbook="livre"},"http")%>';
alert(url);
Note: I don't want to user url.replace('&','&')