Click here to Skip to main content
15,885,244 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Everybody,

In my MVC application the action parameter is passing through url.
When i am entering the value % in URL then it goes to 400 Bad Request Page. I want to redirect in error page so how can it possible.

Pls suggest.
Posted

Well, a "%" (percent sign) is a character used for url encoding (read this http://en.wikipedia.org/wiki/Percent-encoding[^]), so you can not us it on its own. To understand your error it is important to know what comes after the percent sign, because this is the encoded information. like %20 is a space character, %23 is a #, and so on...

hopefully you are not mistaken with the hash (#) which can, and often is used for routing in an url!

hope this helps
 
Share this answer
 
Comments
Anubhava Dimri 19-May-14 4:33am    
Yes But in this case i need to show my page not default 400 Page. So this is issue.
Custom Errors in ASP.NET[^]
Please go through this article and then you can redirect the user to a default Not Found page designed by you.
Thanks
:)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900