Can we mention error in web.config file?

Answer Posted / minhajul islam

Yes, We can
using this tag in web.config

<customErrors mode="On"
defaultRedirect="~/errors/GeneralError.aspx">
<error statusCode="404"
redirect="~/errors/PageNotFound.aspx" />
</customErrors>

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the good practice to implement validations in aspx page?

621


What is razor? : asp.net mvc

546


What are the various ways to send content from one page to another?

516


What is difference between asp.net and asp?

553


Can master pages be nested?

504






How do you identify that the page is postback?

533


What is the function used for removing an event listener?

540


What is data caching?

547


What is tracing? Where is it used?

547


Is asp.net a programming language or framework?

543


How to you can limit Access to Web API to Specific HTTP Verb?

652


Tell me the code snippet to show how we can return 404 errors from HttpError?

777


What is the meaning of TestApi?

625


How to display Alert in ASP.NET

631


How much is the pay-for-use service if I chose not to use microsoft-sponsored advertising?

500