You write a logging function for a Web Form. You call the lo

题目
多选题
You write a logging function for a Web Form. You call the logging function from the Page_Unload event handler. You test the Web Form and notice that the Page_Unload event handler does not call the logging function. You need to ensure that the logging function is called. What are two possible ways to achieve this goal? ()
A

Set the Page attribute to AutoEventWireup=False. Remove the attribute onunload=Page_Unload from the Web Form element.

B

Set the Page attribute to AutoEventWireup=False. Add the attribute OnUnload=Page_Unload to the Web Form element.

C

Set the Page attribute to AutoEventWireup=False. Add the Web Form attribute autocomplete=on.

D

Set the Page attribute to AutoEventWireup=True.

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

You create a Web Form that contains connected Web Parts. You write the following declaration in your Web Form.You need to ensure that your Web Part connection is valid. Which two actions should you perform? ()

A. Include a data source identified as "WebPartConnection1" on the Web Form.

B. Include a Web Part identified as "customerPart" on the Web Form.

C. Include a Web Part identified as "ordersPart" on the Web Form.

D. Ensure that you declare an interface named "IOrdersPart".

E. Ensure that you declare an interface named "ICustomerPart".

F. Ensure that each Web Part declares either a GetInterface or ProvideInterface method.


参考答案:B, C

第2题:

You need to design a strategy to log access to the company Web site. What should you do?()

  • A、Enable logging on the company Web site and select the NCSA Common Log File Format. Store the log files on a SQL Server computer
  • B、Use System Monitor to create a counter log that captures network traffic to the Web server by using the Web Service object. Store the log files on a SQL Server computer
  • C、Run the Network Monitor on the Web server. Create a capture filter for the SNA protocol and save the results to a capture file. Store the capture file on a SQL Server computer
  • D、Enable logging on the company Web site and select ODBC Logging. Configure the ODBC logging options by using a nonadministrative SQL account

正确答案:D

第3题:

Part B

Directions:

Write an essay with the title “Reading Books in Printed Form. or on Computer” in which you should

1) analyze the strong points and weak points of each one, and

2) tell your own preference and your reasons.

You should write 160—200 words neatly on ANSWER SHEET 2.(20 points)


正确答案:
、参考范文

Reading Books in Printed Form. or on Computer

The popularization of computer has made it possible to read books on computer. With it, there is much discussion about whether e-books will replace traditional print-on-paper books.

Some people say they like only e-books, which are quicker and more convenient to get and use. To get a needed book, one has to spend much time or money in searching for or buying it in bookstores, but one can just type in the title, author or other related information of the book to find it in minutes on internet. Sometimes one can even read the full content of a digitized book free of charge or instantly discuss about a book in an online forum. Moreover, a lot of information of books can be stored in a small compact disc, which is easy to take.

Other people, however, think printed books are still necessary. In the first place, too much time in front of the computer can cause eyestrain or increase radiation risks. Second, a printed book can be read at your convenience. One can read in bed before sleep or during a boring journey, without fussing with a computer.

In sum, since e-books and printed books have their respective advantages and can complement each other, I would like to combine the two ways to meet different needs. For quick reference, a digitized book will probably be useful. To appreciate a poem or a novel, I prefer the traditional way of reading on printed books. 

第4题:

You work as a Web Developer at Certkiller.com. You are in the process of creating a Webapplication using Microsoft ASP.NET 3.5.  You need to ensure that the application is able to load staff information from an XML file into aDataSet instance. The XML file contains an inline schema. You have to call a method of theDataSet class in order to load the information.  Identify how you can accomplish this?()

  • A、You should call the ReadXml method with the ReadSchema XML read mode.
  • B、You should call the ReadXml method with the InferTypedSchema XML read mode.
  • C、You should call the ReadXmlSchema method.
  • D、You should call the ReadXml method with the InferSchema XML read mode.

正确答案:A

第5题:

You are implementing a Web page that displays text that was typed by a user. You need to display the user input in the Web page so that a cross-site scripting attack will be prevented. What should you do?()

  • A、Call document.write.
  • B、Call Response.Write.
  • C、Call HttpUtility.UrlEncode.
  • D、Call HttpUtility.HtmlEncode.

正确答案:D

第6题:

Your team creates a Web site. The Web site needs to be deployed to a staging server for performance testing. You plan to make a number of performance enhancements and then retest. You need to compile and copy the Web site to the staging server. What should you do? ()

  • A、Write a batch file that uses aspnet_compiler.exe.
  • B、Write a batch file that uses InstallUtil.exe.
  • C、Write a batch file that uses Csc.exe.
  • D、Write a batch file that uses aspnet_wp.exe.

正确答案:A

第7题:

You are creating a Windows application for graphical image processing by using the .NET Framework 3.5. You create an image processing function and a delegate.You plan to invoke the image processing function by using the delegate.You need to ensure that the calling thread meets the following requirements:  (1)It is not blocked when the delegate is running   (2)It is notified when the delegate is complete What should you do?()

  • A、Call the Invoke method of the delegate.
  • B、Call the BeginInvoke and EndInvoke methods of the delegate in the calling thread.
  • C、Call the BeginInvoke method by specifying a callback method to be executed when the delegate is complete.Call the EndInvoke method in the callback method.
  • D、Call the BeginInvoke method by specifying a callback method to be executed when the delegate is complete.Call the EndInvoke method of the delegate in the calling thread.

正确答案:C

第8题:

You are working on an existing Web site. You need to secure the Web site by redirecting all users to the logon page, Login.aspx. After logging on, users must be sent back to the page that they originally requested.Which code segment should you use?()

A.

B.

C.

D.


参考答案:D

第9题:

You create a Web Form that contains connected Web Parts. You write the following declaration in your Web Form. You need to ensure that your Web Part connection is valid. Which two actions should you perform? ()

  • A、Include a data source identified as "WebPartConnection1" on the Web Form.
  • B、Include a Web Part identified as "customerPart" on the Web Form.
  • C、Include a Web Part identified as "ordersPart" on the Web Form.
  • D、Ensure that you declare an interface named "IOrdersPart".
  • E、Ensure that you declare an interface named "ICustomerPart".
  • F、Ensure that each Web Part declares either a GetInterface or ProvideInterface method.

正确答案:B,C

第10题:

You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.  You create a Web page to display photos and captions. The caption of each photo in the database can be modified by using the application.  You write the following code fragment.  ’ runat="server"/>  | English | Chinese | Japan | Korean | - 124 - Test Information Co., Ltd. All rights reserved. ’ runat="server" />      When you access the Web page, the application throws an error.  You need to ensure that the application successfully updates each caption and stores it in the database.  What should you do?()

  • A、Add the ID attribute to the Label control.
  • B、Add the ID attribute to the TextBox control.
  • C、Use the Bind function for the Label control instead of the Eval function.
  • D、Use the Eval function for the TextBox control instead of the Bind function.

正确答案:B

更多相关问题