多项选择题You create a server control that inherits from WebControl. You need to enable the server control to emit markup for a new kind of mobile device. You must not alter the code in the server controls. Which two actions should you perform?()

A. Create a class that inherits HtmlTextWriter and that can emit the new markup.
B. Create a class that inherits StreamWriter and that can emit the new markup.
C. Reference the class in the <capabilities> element of the new device's browser definition file.
D. Reference the class in the <controlAdapters> element of the new device's browser definition file.


您可能感兴趣的试卷

你可能感兴趣的试题

1.多项选择题You create a mobile Web application. You need to use a Command control to post user input from the UI elements back to the server. What are two possible ways to achieve this goal?()

A. Place the Command control within an instance of the System.Web.UI.MobileControls.SelectionList control.
B. Place the Command control within an instance of the System.Web.UI.MobileControls.ObjectList control.
C. Place the Command control within an instance of the System.Web.UI.MobileControls.Form control.
D. Place the Command control within an instance of the System.Web.UI.MobileControls.Panel control.

2.多项选择题You create a Web Form. You need to add controls that use adaptive rendering to display content. The type of content rendered must depend on the device that is requesting the page. What are two possible ways to achieve this goal? ()

A. Add custom controls that emit XHTML to the Web Form.
B. Add custom controls that emit WML to the Web Form.
C. Add mobile controls to the Web Form.
D. Add Web server controls to the Web Form.

3.单项选择题You create a Web Form that contains a text box named txtDate. You want the text box to allow users to enter any valid date. You need to use an ASP.NET validation control to ensure that only valid date values are submitted to the server. What should you do?()

A. Add a CompareValidator control to the Web Form. Set its ControlToValidate property to txtDate. Set its Type property to Date. Set its Operator property to DataTypeCheck.
B. Add a RangeValidator control to the Web Form. Set its ControlToValidate property to txtDate. Set its Type property to Date. Set its MinimumValue property to 01/01/1900 and its MaximumValue to the current date.
C. Add a CustomValidator control to the Web Form. Set its ControlToValidate property to txtDate. Write a function in the partial class that verifies the values as dates and returns a Boolean variable. Set the CustomValidators ClientValidationFunction to the name of your function.
D. Add a RegularExpressionValidator control to the Web Form. Set its ControlToValidate property to txtDate. Set the ValidationExpression property to ensure that the users input follows the format of nn-nn-nnnn, where n represents a number from 0 through 9.

5.单项选择题You develop a Web application. Your application contains two settings in the Web.config file. You deploy your application to production. You need to modify the application settings in the production environment without manually editing the XML markup in the Web.config file. What should you do? ()

A. Modify the application settings by using the Web Site Administration Tool.
B. Modify the application settings by using the Visual Studio property page editor for the project.
C. Modify the application settings by using the resource editor.
D. Modify the application settings by using the Visual Studio start options editor.

6.多项选择题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".

7.单项选择题You write a Web application. This application must support multiple languages. You store the localized strings in the application as resources. You want these resources to be accessed according to a users language preference. You create the following resource files in the App_GlobalResources folder of your application.myStrings.resxmyStrings.enCA.resxmyString.en-US.resxmyStrings.fr-CA.resxmyStrings.es-MX.resx resource file stores a localized version of the following strings: Name, E-mail, Address, and Phone. You create a Web Form that contains one label for each of these strings. You need to ensure that the correct localized version of each string is displayed in each label, according to a users language preference. What should you do? ()

A. Add the following configuration section to the Web.config file. <globalization culture="Auto" />
B. Set the directive for each page in your site as follows: <%@ Page UICulture="Auto" %>
C. Add the following code segment to the pages load event. lblName.Text = "{myStrings}Name" lblAddress.Text = "{myStrings}Address" lblEmail.Text = "{myStrings}Email" lblPhone.Text = "{myStrings}Phone"
D. Add the following code segment to the pages load event. lblName.Text = Resources.myStrings.Name lblAddress.Text =Resources.myStrings.Address lblEmail.Text = Resources.myStrings.Email lblPhone.Text = Resources.myStrings.Phone

8.多项选择题You create a Web Form. The Web Form contains two Web Parts named CustomerPart and OrdersPart. CustomerPart contains a drop-down list of customers. OrdersPart contains a list of orders that a customer has placed. You need to create a static connection between CustomerPart and OrdersPart. When a user selects a customer from CustomerPart, OrdersPart must update. Which four actions should you perform? ()

A. Add the ConnectionProvider attribute to OrdersPart.
B. Add the ConnectionProvider attribute to CustomerPart.
C. Add the ConnectionConsumer attribute to CustomerPart.
D. Add the ConnectionConsumer attribute to OrdersPart.
E. Add OrdersPart and CustomerPart to the WebParts directory.
F. Add OrdersPart and CustomerPart to the App_Code directory.
G. Declare the connections within a StaticConnections subtag of a WebPartZone class.
H. Declare the connections within a StaticConnections subtag of a WebPartManager class.
I. Define an interface specifying the methods and properties that are shared between the Web Parts.

9.单项选择题You have a Web application that is configured for personalization. You need to access personalization data from one of the pages of the Web application by using the minimum amount of administrative effort. What should you do? ()

A. Access the personalization data from the Session property of the HttpContext object.
B. Access the personalization data from the Application property of the HttpContext object.
C. Access the personalization data from the Cache property of the HttpContext object.
D. Access the personalization data from the Profile property of the HttpContext object.

最新试题

You need to turn on Tracing for a page that is not performing well. You must store the trace information in a database for reporting and trending.Which two actions should you perform?()

题型:多项选择题

You have a Web application that is configured for personalization. You need to access personalization data from one of the pages of the Web application by using the minimum amount of administrative effort.What should you do? ()

题型:单项选择题

You are using the ASP.NET membership APIs to manage user accounts for a Web site. The Web.config file contains the definition for the membership provider. After modifying the Web.config file to enable password recovery, you create a PasswordReset.aspx file.? You need to enable users to reset their passwords online. The new passwords must be sent to them by e-mail after they have logged on through the Login.aspx page. In addition, users must be required to answer their secret questions before resetting their passwords.Which code logic should you use?()

题型:单项选择题

You are creating a Web application that will run on an intranet. The Web application reads comma-delimited text files. The text files reside in a subdirectory below the Web application's root directory. Users must not be able to navigate directly to these files in a Web browser unless they are members of the Accounting role. You need to write an ASP.NET HTTP handler that will use the FileAuthorizationModule class.Which form of authentication should you use?()

题型:单项选择题

ou are developing a chat forum for the Certkiller .com Web site. You are using ASP.NET 2.0 to develop the chat forum. You are developing a Web Form that allows a subscriber to alter enter their account details. The page contains the following code snippet.You need to programmatically hide the TextBox control based on other input.What should you do?()

题型:单项选择题

You want to enable users of a Web application to modify the Web application's UI and behavior. These modifications must be maintained at the user level so that when users return to the Web application, the changes are still in effect. You need to achieve this goal by using the minimum amount of custom code.What should you do?()

题型:单项选择题

You create a server control that inherits from WebControl. You need to enable the server control to emit markup for a new kind of mobile device. You must not alter the code in the server controls.Which two actions should you perform?()

题型:多项选择题

You create a Web site for a customer. You need to deploy the Web site to the customers server without any of the source files for the Web site. You do not want the customer to be able to update any of the static pages on the Web site.Which tool should you use?()

题型:单项选择题

You create a server control that inherits from WebControl. You need to enable the server control to emit markup for a new kind of mobile device. You must not alter the code in the server controls.Which two actions should you perform?()

题型:多项选择题

You create an intranet Web site for management of project documents. You need to enable all users to browse documents on the site. Only members of the administrators group must be ble to upload files.Which code segment of the Web.config file should you use?()

题型:单项选择题