Click here to Skip to main content
15,891,529 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Friends,
Im using Asp.net 2008, for that i need to use Error handling for .html pages. I tried it using Web config file like as below

XML
<customErrors defaultRedirect="Default.aspx" mode="On" >
      <error statusCode="404" redirect="/Default.aspx" />
    </customErrors>


But it works only for .aspx extension pages it absolutely get fails for .html pages.
Do please tell me its solution.

Regards,

Yogesh
Posted

1 solution

 
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