C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !



Posted By: Vijayaragavan.R       Member Level: Bronze       Posted Date: 27 Aug 2008       Category: ASP.NET

You create a Web Form. The Web Form allows users to calculate
values and display the results in a label named lblResults. You need to
capture all unhandled exceptions on the Web Form through the Error event.
The Error event must capture each unhandled exception and display it
on the Web Form. Which code segment should you use?



Select Answer:

protected void Page_Error(object sender, EventArgs e) { lblResults.Text = e.ToString(); e=null;}
protected void Page_Error(object sender, EventArgs e) { lblResults.Text = Server.GetLastError().ToString(); Server.ClearError();}
protected void Page_Error(object sender, EventArgs e) { Response.Write(e.ToString()); e=null;}
protected void Page_Error(object sender, EventArgs e) { Response.Write(Server.GetLastError().ToString()); Server.ClearError();}




      
Your Test Score: 0 / 0



Next Question: You need to find all matches from your Product table in which the Description column includes either the words “book” or “booklet”. Which of the following FTS syntaxes should you use?
Previous Question: Q6:You create a large, n-tier Web application that has a custom event tracking system. You need to create a custom event type that enables your event tracking system to record all relevant event details for all types of events. The events must be stored in Microsoft SQL Server. From which base type should your custom event type inherit?
Related Questions:
  • You are designing a Web Form that will use a Repeater control to display information from several columns of the Employees table in your database. You want to display the column names at the top of the control. Which template should include Label controls with the column names?


  • what Checks if the value in validated control is in that specific range.


  • The object that contains all the properties and methods for every ASP.NET page, that is built is


  • Which one is true ?


  • Which is not a provider from the following?


  • Categories

    ASP.NET C# VB.NET 
    .NET Framework SQL Server Other 

    Submit Interview/Test Questions with Answers and make money from adsense revenue sharing program

    Want to prepare for an interview? Try our aptitude tests and standard interview questions first.


    dotNet Slackers   BizTalk Adaptors    Web Design


    Contact Us    Privacy Policy    Terms Of Use