Can we mention error in web.config file?

Answers were Sorted based on User's Feedback



Can we mention error in web.config file?..

Answer / 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

Can we mention error in web.config file?..

Answer / pooja soni

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="Connstring" value="Data
Source=.\SQLEXPRESS;Initial Catalog=POS;Integrated
Security=True" />
</appSettings>
</configuration>

Is This Answer Correct ?    4 Yes 24 No

Post New Answer

More ASP.NET Interview Questions

Explain difference between dataset and recordset?

0 Answers  


What are runtime hosts?

4 Answers   Microsoft,


You ve defined one page_load event in aspx page and same page_load event in code behind how will prog run?

6 Answers   TCS,


Explain which is best suited place in the Application Start and Session_Start subroutines with an example?

3 Answers   Siebel,


What is Serilazation? how many type of serilazation are their?

3 Answers  






Describe the difference between inline and code behind - which is best in a loosely coupled solution Tightly coupled - INLINE

2 Answers  


What is asp net application object?

0 Answers  


Why is global asax is used?

0 Answers  


Can you use c# without .net?

0 Answers  


what are debugging types in .net?

2 Answers   ABC, NIIT,


What are the two Layouts supported by a Web form in ASP.NET?

0 Answers   MCN Solutions,


what is view stat? how it is use.

3 Answers   TCS,


Categories