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 itemrowdatabound for a datagrid?

1 Answers   IBM,


COM+ Used ________________ Isolation Level

0 Answers   CTS,


Explain exception handling in .net.

0 Answers  


What are the Application_Start and Session_Start subroutines used for?

5 Answers   Siebel Systems,


What are Sticky Sessions?

2 Answers   Infosys,






Explain about Automatic resource management?

0 Answers  


if u r projet consist of 4 people means how can u manage the file

10 Answers   Mind Tree,


Where web.config file is used?

0 Answers   HCL,


Singleton Design pattern?How do you achieve it?

3 Answers   Microsoft,


Write a code for sending an email from asp.net application.

0 Answers  


Explain difference between friend and protected friend?

0 Answers  


What Is ASPNET_WP.exe? What Is The Use Of It? In Which Place Inproc Session Stored ? Explain Session State ?

2 Answers   Phoenix Technologies,


Categories