找考题网-背景图
单项选择题

You are the senior technician at Certkiller.com. You have been instructed to create a MicrosoftASP.NET application using Microsoft .NET Framework v3.5. 
You make use of ASP.NET AJAX to create a web form. In order to handle exception from
asynchronous postbacks you decide to write the client script code fragment below. You write thefollowing client-script code fragment to handle the exceptions thrown from asynchronouspostbacks. (The line numbers is included for reference purposes)
01 <script type="text/javascript">
02 function pageLoad()
03 {
04  var pageMgr = Sys.WebForms.PageRequestManager.getInstance();
05
06 }
07
08 function errorHandler(sender, args)
09 {
10
11 }
12 </script> 
You receive an instruction from the network administrator to ensure that the application is able toexecute the criteria below:
* You need to ensure that the application makes use of a common client-script function namederrorHandler.
* The Label control with an ID named TestError should be updated with the error message.* The browser should not display any message box or Javascript error 
How can this be accomplished?()

A.A
B.B
C.C
D.D

热门试题

单项选择题Certkiller.com has employed you as a Web Application Developer. You are in the process ofcreating an ASP.NET application using Microsoft .NET Framework v3.5. You decide to create acustom Web user control for the application.  You name this control TestShare. TestShare will be compiled as a library. The code below iswritten for TestShare. (The line numbers is included for reference purposes) 1 Protected Overloads Overrides Sub OnInit(ByVal e As EventArgs) 2 MyBase.OnInit(e) 3 4 End Sub  The master pages in the application contains the directive below:<%@ Master Language= VB  EnableViewState= false  %> You receive an instruction from management to make sure that the state of TestShare is able tocontinue on the pages that reference a master page. You thus need to determine the appropriatecode that should be added at line 3.  What should you identify?()

A.You should consider adding the Page.RegisterRequiresControlState(Me) code fragment.
B.You should consider adding the Page.UnregisterRequiresControlState(Me) code fragment.
C.You should consider adding the Page.RegisterStartupScript("TestShare", "server") codefragment.
D.You should consider adding the Page.RegisterRequiresPostBack(Me) code fragment.