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

Which ASP.NET configuration options are supported in the ASP.NET implementation on the shared web hosting platform?

647


How does the cookies work in asp.net?

552


is there any third party tools are using in .net technologies? what are there ? give me the brief introduction?

1948


How can u debug your .net application?

576


What is difference between view and partial view?

504






If we remove web.config or machine.config from the application then, is this application will works?

592


How do u deploy ur project?

2218


What is Dynamic Web and discuss its usage with the help of real life examples?

594


What is client side state management?

502


What is the difference between asp.net and mvc?

578


What is the use of HttpHandlers? When to use this?

623


What is viewstate? What does the "enableviewstate” property do? Whay would I want it on or off?

523


there is two functions function a and function b like fun a(){.... ..... } fun b() { } in function b i write the coding to add two numbers and i need to dispaly the sum result in function a with out using global variable. how we do?

2221


What is the namespace to create thread in .net?

525


What is asp.net with mvc? : Asp.Net MVC

516