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 the scenario where we go for inpro and outpro session?

3 Answers  


What is the namespace to create thread in .net?

1 Answers  


Explain Assemblies?,Difference between Panel and GroupBox?,Differences between ASP and ASP.NET?

1 Answers  


What is web.config and machine.config ?

3 Answers   Collabor, NDPL, TCS,


Can you nest updatepanel within each other?

1 Answers  


Difference b/w casting and boxing?

5 Answers   IBS,


Can the validation occurs in server-side or client-side? If the validation occurs why should we do?

1 Answers   Siebel,


What are the main advantages of using asp.net?

1 Answers  


What is the DLL Hell Problem?

2 Answers  


Differentiate between globalization and localization.

1 Answers  


Explain the life cycle of an ASP .NET page.

2 Answers  


can we pass values from one page to another page without redirecting to that page?

6 Answers   Google, Patni, Syntel, Wipro,


Categories