单项选择题
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
相关考题
-
单项选择题
You work as a Web Developer at Certkiller.com. You use Microsoft ASP.NET 3.5 to create a Webapplication. A Hypertext Transfer Protocol (HTTP) handler is implemented to produce Human Interactive Proof(HIP) images. You have to make sure that the current page invoke the handler and automaticallycontinue executing after the handler completes execution. What should you do?()
A.You should consider setting the RedirectLocation property of the HttpResponse class.
B.You should consider calling the Redirect method of the HttpResponse class.
C.You should consider calling the Execute method of the HttpServerUtility class.
D.You should consider calling the Transfer method of the HttpServerUtility class. -
单项选择题
Certkiller.com has employed you as a Web Application Developer. You are in the process ofcreating an ASP.NET application. In order to create the application you make use of Microsoft.NET Framework v3.5. The Web application makes use of ASP.NET AJAX. You receive a request from management todeploy thid application in a Web farm environment. You thus decide to configure the SessionStatefor the application. How can this be accomplished?()
A.A
B.B
C.C
D.D -
单项选择题
You are employed as a Web Application Developer at Certkiller.com. You make use of Microsoft.NET Framework v3.5 to create an ASP.NET application. You create a class in the application that contains the code below. (The line numbers is includedfor reference purposes) 01 public object GetCachedProducts(sqlConnection conn) { 02 03 if (Cache["products"] == null) { 04 SqlCommand cmd = new SqlCommand("SELECT * FROM Products", conn); 05 conn.Open(); 06 Cache.Insert("products", GetData(cmd)); 07 conn.Close(); 08 } 09 return Cache["products"]; 10 } 11 12 public object GetData(SqlCommand prodCmd) { 13 14 } You notice that the GetCachedProducts method is called to provide this list from the Cache objectevery time a Web form has to access a list of products. To ensure productivity management wantsyou to make sure that there is always a list of products available in the Cache object. You thusneed to determine the appropriate code that should be added in line 13. What should you identify?()
A.A
B.B
C.C
D.D
