护理学章节练习

多选题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? ()AAdd custom controls

题目
多选题
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.

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

第1题:

You are developing a Windows Presentation Foundation (WPF) application. You need to display HTML content from a Web Page on the WPF form. What should you do?()

  • A、 Add a FlowDocumentReader control to the design surface. Then create a FlowDocument control.
  • B、 Add a ContentControl control to the design surface. The reference a WebClient object to return an HTML string.
  • C、 Add a DocumentViewer control to the design surface. The create a FixedDocument control.

正确答案:C

第2题:

You create a Web Form with several UI elements on it. During a code review, you realize that some of the UI elements can be grouped into user controls. You need to create a Web control to group the UI elements that do not require server-side processing. Doing so will enable you to programmatically add or remove the UI elements from the page. You want to maintain the UI elements' style properties. What should you do? ()

  • A、Use System.Web.UI.TemplateControl to group the UI elements.
  • B、Use System.Web.UI.HtmlControls.HtmlControl to group the UI elements.
  • C、Use System.Web.UI.LiteralControl to group the UI elements.
  • D、Use System.Web.UI.WebControls.Literal to group the UI elements.

正确答案:C

第3题:

You create a Web site. You add an EditorZone control to the home page on the Web site. You need to enable users to customize the size and location of the Web Parts on their home pages.Which two controls should you add to the EditorZone control?()

A. BehaviorEditorPart

B. AppearanceEditorPart

C. PropertyGridEditorPart

D. LayoutEditorPart


参考答案:B, D

第4题:

You are employed as the senior administrator at Certkiller.com. You make use of Microsoft .NETFramework v3.5 to create a Microsoft ASP.NET application.  You make use of ASP.NET AJAX create a Web form. The code fragment below exists in the Webfrom. (The line numbers is included for reference purposes) 01  02 03 Sys.Application.add_init(initComponents); 04 05 function initComponents() {0607 } 08 09  10 11  13   You make use of the initComponents function to create and start a user behavior. This userbehavior is named CKBehavior. You have to make sure that CKBehavior is attached to CKTextBoxA. You should determine the appropriate code segment you need to add in line 6 toaccomplish this.  What should you identify?()

  • A、Your best option would be to insert Sys.Component.create(CKBehavior, $get('CKTextBoxA'),null, null, null)
  • B、Your best option would be to insert Sys.Component.create(CKBehavior, 'CKTextBoxA', null,null, null)
  • C、Your best option would be to insert $create(CKBehavior, null, null, null, $get('CKTextBoxA'))
  • D、Your best option would be to insert $create(CKBehavior, null, null, null, 'CKTextBoxA')

正确答案:C

第5题:

You are developing a Web control. The Web control captures user address information in a Web application. You create a class named AddressControl that inherits from CompositeControl. This control consists of child controls. You need to ensure that the child controls are properly output to the browser. Developers using your control must be able to set the appropriate text for labels. In addition, they must be able to pull user address information from the associated text boxes during postback. What should you do? ()

  • A、Override the EnsureChildControls method of the base class. Add the child controls to the base container.
  • B、Override the CreateControlCollection method of the base class. Add the child controls to the ControlCollection class.
  • C、Override the CreateChildControls method of the base class. Add the child controls to the base container.
  • D、Override the DataBindChildren method of the base class. Add the child controls to the ControlCollection class.

正确答案:C

第6题:

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.

正确答案:A

第7题:

You develop an ASP.NET Web page that includes multiple WebPartZone controls, an EditorZone. Users report that they cannot customize the layout of the page by moving WebParts from one.You need to ensure that users can successfully move Web Parts from one zone to another. What should you do?()

  • A、Configure the Web site to enable session state.
  • B、Configure the Web site to require authentication and to use personalization.
  • C、Add a ProxyWebPartManager control to the page.
  • D、Add a AppearanceEditorPart control to the page.

正确答案:B

第8题:

You create a Web application for your company‘s intranet. You want to enable users to customize their versions of the intranet home page. You create sections of content as Web Parts. You need to ensure that users can customize content at any time.Which two code segments should you use?()

A.

B.

C.

D.


参考答案:B, C

第9题:

You are creating a custom user control. The custom user control will be used on 10 Web Forms for an ASP.NET Web site that allows users to register and log on to a personalized experience. The custom user control uses two TextBox controls and two Button controls. You need to ensure that the controls are visible only when users are not logged on to the Web site. You also need to minimize the amount of effort in development and maintenance for the Web site. Which two actions should you perform? ()

  • A、Add the OnClick event handler for the Login button to the code used in the custom user control.
  • B、Add the OnClick event handler for the Login button to the code used in the Web Form where the control is added.
  • C、In the Page_Load method of the Web Form, add a code segment to set the visibility of the TextBox and Button controls where the control is added.
  • D、In the Page_Load method of the custom user control, add a code segment to set the visibility of the TextBox and Button controls.

正确答案:A,D

第10题:

You work as a Web Developer at Certkiller.com. You are in the process of creating a Webapplication using Microsoft ASP.NET 3.5.  A third-party assembly contains custom server controls. This assembly does not contain a strongname and it’s not part of the application’s Microsoft Visual Studio 2008 solution. You have to makesure that the other users are able to use the custom controls. You decide to configure theapplications project.  What should you do?()

  • A、You should add a project reference to the project.
  • B、You should add a Web reference to the project.
  • C、You should add a service reference to the project.
  • D、You should add an assembly reference to the project.

正确答案:D

更多相关问题