ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  ASP.NET
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions
 C Sharp interview questions  C Sharp Interview Questions
 ASP.NET interview questions  ASP.NET Interview Questions
 VB.NET interview questions  VB.NET Interview Questions
 COM+ interview questions  COM+ Interview Questions
 ADO.NET interview questions  ADO.NET Interview Questions
 IIS interview questions  IIS Interview Questions
 MTS interview questions  MTS Interview Questions
 Crystal Reports interview questions  Crystal Reports Interview Questions
 BizTalk interview questions  BizTalk Interview Questions
 Dot Net interview questions  Dot Net Interview Questions
 Exchange Server interview questions  Exchange Server Interview Questions
 SharePoint interview questions  SharePoint Interview Questions
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
How can u handle Exceptions in Asp.Net?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How can u handle Exceptions in Asp.Net?
Answer
# 1
using system.exceptions namespace

Try 
  Piece of code ..
Catch objError as Exceptions
     display objError.message
Finally
 
Is This Answer Correct ?    0 Yes 0 No
Guest
 
  Re: How can u handle Exceptions in Asp.Net?
Answer
# 2
try
{
 //set of code
}
catch(Exception1 e)
{
 //error display
}
catch(Exception2 e)
{
 //error display
}
finally
{
 //compulsory execution will be done here
}
 
Is This Answer Correct ?    1 Yes 1 No
Senthil Kumar
 
 
 
  Re: How can u handle Exceptions in Asp.Net?
Answer
# 3
In ASP.NET exception handling is achieved using the Try ? 
Catch ? Finally block. All the three are ASP.NET keywords 
and are used do exception handling. The try block encloses 
the statements that might throw an exception whereas catch 
block handles any exception if one exists. The finally 
block can be used for doing any clean up process. Any 
general ASP.NET exception forces the application to 
terminate without allowing the code to continue executing, 
resulting in an error page. 

<Script runat=server>
Public Page_Load(sender As Object, e As EventArgs)
{
try
{
// Statements that are can cause exception
}
catch(Type x)
{
// Statements to handle exception
}
finally
{
// Statement to clean up 
}
}
</Script>
Custorm Errors:
The default settings that is available in machine.config is 
as follows 
<customErrors mode="RemoteOnly"/>
 
Is This Answer Correct ?    0 Yes 0 No
Poornima P
 
  Re: How can u handle Exceptions in Asp.Net?
Answer
# 4
In ASP.NET, we have three types of Error Handling.
1. Structured Level Error Handling (try..catch..finally 
block)
2. Page Level Error Handline 
3. Application Level Error Handling.
 
Is This Answer Correct ?    2 Yes 0 No
Aadil
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
Suggest 3 best practices in detail for for Developing High Performance Web and Enterprise Applications Techno-Solutions2
Explain Page life cycle DELL6
When does the application ONEND event handler fire? C-Squared-Systems1
Difference between ADO.Net 1.1 and ADO.Net 2.0 ? Value-Labs1
how we deploy the asp.net 2.0 application Logistics1
Windows Authentication (via Active Directory) and SQL Server authentication (via Microsoft SQL Server username and passwords). Which one is trusted and which one is untrusted?  2
In what order do the events of an ASPX page execute. As a developer, why is it important to understand these events? Syntax-Softtech5
I have a textbox , assign required field validator and i have two buttons 1) save 2) cancel , i want the validator run only when i click save button, don't validate cancel button , what to do? eMids5
How do you define authentication in Web.Config? Accenture2
how to use html code in asp source code?  1
Tell about WebService in Asp.Net? Accenture4
I have developed a web application in asp.net 2.0 with Access as back end i am trying to gereate report/export data in excel. After hosting the site i am not getting any error or such exported excel file. but using the source code from my system it works fine. Could any one tell me why it is happening and what is its solution.  2
RequiredFieldValidator--write code in javascript Wipro2
What is Assert Method ?  2
.Net Doesn't offer Deterministic Distruction ? a) True b) False CTS4
What are the 4 tenants of SOA/D.  1
Can you explain what inheritance is and an example of when you might use it?  1
what is the difference b/w Asp.net server controls and html server controls in .net? iGate2
what are the sitemap providers in Asp.net 2.0?  2
what is satellite assembly in .net?  4
 
For more ASP.NET Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com