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

What is difference between Lambda Expression and LINQ in ASP.NET?

0 Answers   Viscus Infotech,


Is it possible to migrate visual interdev design-time controls to asp.net?

0 Answers  


How ASP.NET page works?

0 Answers   MCN Solutions,


How would you turn off cookies on one page of your website?

0 Answers  


How to implement Authentication and Authorization?

0 Answers   QuestPond,






What do you mean by query string?

0 Answers  


What's a bubbled event?

3 Answers   Siebel,


Can we have multiple worker process in an ASP.NET application? If so then how it has been handled by application? And who handles it?

0 Answers   InfoAxon Technologies,


Differentiate an ADO.NET Dataset and an ADO Recordset with its functionality?

3 Answers   Siebel,


How to count the number of objects present in a web page? How to count the number of radio buttons in a web page?

0 Answers   HCL,


What are the different types of sessions in asp.net?

0 Answers  


What is the file extension of web service?

0 Answers  


Categories