多项选择题
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.
相关考题
-
单项选择题
You create a Web Form that allows users to create a new account. You add a CreateUserWizard control by using the following code segment.You need to ensure that the wizard automatically sends an e-mail message to users when they finish creating their accounts. You add a valid element to the Web.config file. Which code segment should you add to the Page_Load event?()
A. Wizard1.RequireEmail = True
B. Wizard1.Email = "user@address.com"
C. Wizard1.MailDefinition.From = "registration@mysite.com"
D. SmtpMail.SmtpServer = "mail.contoso.com" -
单项选择题
You are developing a page named Process.aspx in a shopping cart Web application that will be integrated into Certkiller .coms existing e-Commerce Web site. The Process.aspx page allows customers to pay for purchases using their credit cards. The Process.aspx page contains a Button control that confirms the customers payment and calls an external Web service that charges the customers credit card. You must implement confirmation and prevent postback unless the customer confirms payment. What should you do?()
A. Set the OnClientClick property to a JavaScript statement.
B. Set the PostBackUrl property to a JavaScript statement.
C. Set the PostBackUrl property to the URL of a confirmation page.
D. Set the OnClientClick property to the URL of a confirmation page. -
多项选择题
Certkiller .coms e-Commerce Web application contains a page named Products.aspx that uses data source and data-bound server controls. Customers use the server controls to search for products. The Products.aspx page does not have an associated code-behind file. You need to convert the Products.aspx page to a user control so that its functionality can be reused on other pages. What should you do?()
A. Move the Products.aspx page to the App_Code folder.
B. Create a code-behind file for the Products.aspx page.
C. Rename the Products.aspx page to Products.ascx..
D. Remove all server controls from the Products.aspx page.
E. Replace the Page directive with a Control directive.
