Click here to Skip to main content
15,891,761 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
We have a 404 page. When we are in 404 page, we have search box. if we try to search from search box, it again returns to 404 page. How could we handle this?

PS: My search button is inside user control and user control is inside masterpage.

When we go to the site below; http://www.x.com/dk

it goes to 404.

then if we make search from th,s 404 page it directs us to the link below; http://www.x.com/dk?404%3bhttp%3a%2f%2fwww.x.com%3a80%2fdk

my web config sets
XML
<customerrors mode="Off" defaultredirect="Error.aspx">
   <error statuscode="404" redirect="PageNotFound.aspx" />
</customerrors>
 <httperrors>
 <remove statuscode="404" substatuscode="-1" />
 <error statuscode="404" path="/PageNotFound.aspx" prefixlanguagefilepath="" responsemode="ExecuteURL" />
 </httperrors>
Posted
Updated 26-Aug-13 3:55am
v2

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