A small way of knowledge sharing!

About me

Live Chat with me

Knowledge Sharing


Hi Friends, I am here to share the knowledge of past, present and future technologies, news related topics and some programming related posts. These posts will help you in coding as well to come out of your if you are in programming field. You can ask the question or you can start a discussion here.

Main aim to start this blog is to share our knowledge through the web and let the other people know what actually happening around us. You can add the data here and it will be published to all people.



Handling HTTP Error 404 - File or Directory not found error message and custom errors in asp net

Hi Friends,

There are two simple ways to hadle errors in ASP Net, one is using global.asax file and another one is using web.config file. Following lines are to handle the custom errors for a asp net based webapplication,

<customErrors defaultRedirect="ErrorPage.aspx" mode="On">
<error statusCode="500" redirect="servererror.aspx" />
<error statusCode="404" redirect="filenotfound.aspx" />
<error statusCode="403" redirect="AccessDenied.aspx" />
</customErrors>


here 404 is for file not found error redirection.This works for whole application that means whether you are in asp page or html page it will
be redirected to error page.

HTML Tutorial

Hi Friends,

Hope this tutorial help in your code (for learners). If you like the post please make a comment and be in touch to  continue with latest updates. That helps me to put keen interest my service here.

Regards,
Revelly.
Powered By Blogger