I'm trying to submit an action with a parameter like this:
<a href="@Url.Action(@"Create/?reference=01/04/2016", "Cobranca")"
But it generates a URL like this:
Cobranca/Create/%3freference%3d01/04/2016
And causes the error:
A potentially dangerous Request.Path value was detected from the client
I put the following codes in web.config:
<pages validateRequest="false" />
<httpRuntime targetFramework="4.5" requestPathInvalidCharacters="" />
<system.webServer>
<security>
<requestFiltering allowDoubleEscaping="true"/>
</security>
It stopped this error but now of error 404 being that the URL should be:
Cobranca/Create/?reference%3d01/04/2016
or better
Cobranca/Create/?reference=01/04/2016