CMS专题

多选题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.()ACreate a class that inherits HtmlTextWriter and that

题目
多选题
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.()
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 have a file server that runs Windows Server 2008 R2.You configure quotas on the server.You need to view each users quota usage on a per folder basis.What should you do?()

A. From File Server Resource Manager, create a File Screen.

B. From File Server Resource Manager, create a Storage Management report.

C. From the command prompt, run dirquota.exe quota list.

D. From the properties of each volume, review the Quota Entries list.


参考答案:B

第2题:

You are creating a Windows Forms Application by using the .NET Framework 3.5.You plan to design a new control that will be used on multiple forms in the app.You need to ensure that the control meets the following requirement  (1)It retrieves data from a MSSQL Server 2008 database instance. (2)It uses WPF classes to display data.  (3)It uses user-customizable actions when the control is first painted on the form.   What should you do?()

  • A、Create a new custom class for the control that is derived from the Control class.
  • B、Create a new custom class for the control that is derived from the UserControl class.
  • C、Create a new custom class for the control that is derived from the ContentControl class.
  • D、Create a new custom class for the control that is derived from the ContentPresenter class.

正确答案:B

第3题:

You develop a Web control. The Web control consists of labels and associated text boxes.You need to ensure that the Web control has both toolbox and visual designer support. What should you do?()

A. Add a Web Control Library project to your solution. Define a class that inherits from CompositeControl.

B. Add a Windows Control Library project to your solution. Define a class that inherits from UserControl.

C. Add a Web User Control to your project. Define a class that inherits from UserControl.

D. Add a Mobile Web User Control to your project. Define a class that inherits from MobileUserControl.


参考答案:A

第4题:

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You add a property named ServiceContext to a control. You need the value of ServiceContext to flow to the child controls exactly like the value of the DataContext property of the FrameworkElement class. What should you do? ()

  • A、 Inherit the control class from the DependencyObject class.
  • B、 Register a dependency property.   In the options settings of the property metadata, specify the Inherits option.
  • C、 Declare a new property.   In the get and set methods of the new property, create an instance of the TraversalRequest class. 
  • D、 Declare a new property.   In the get method of the new property call VisualTreeHelper.GetParent.   In the set method of the new property, call VisualTreeHelper.GetChild.

正确答案:B

第5题:

You have a server that runs Windows Server 2008. You need to prevent the server from establishing communication sessions to other computers by using TCP port 25. What should you do()

  • A、 From Windows Firewall, add an exception
  • B、 From windows Firewall enable the block all incoming connections option
  • C、 From the Windows Firewall with Advanced Security snap-in, create an inbound rule
  • D、 From the Windows Firewall with Advanced Security snap-in, create an outbound rule.

正确答案:D

第6题:

You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You create a custom-templated server control.  You need to ensure that the child controls of the server control are uniquely identified within the control hierarchy of the page.  Which interface should you implement?()

  • A、the ITemplatable interface 
  • B、the INamingContainer interface 
  • C、the IRequiresSessionState interface
  • D、the IPostBackDataHandler interface

正确答案:B

第7题:

You are creating a templated Web control for use in your Web application. You need to add the Web control to your Web application pages without compiling your control into a .dll file. What should you do?()

  • A、Ensure that the Web control inherits from the WebControl class.
  • B、Ensure that the Web control inherits from the Control class.
  • C、Ensure that the Web control inherits from the CompositeControl class.
  • D、Ensure that the Web control inherits from the UserControl class.

正确答案:D

第8题:

Your network contains a server named Server1 that runs Windows Server 2008 R2. Server1 hosts a custom application named App1. App1 is accessible on TCP port 5000.You need to encrypt App1 data on the network.What should you do?()

A. From the Local Security Policy console, configure the Security Options.

B. From the Local Security Policy console, configure the Application Control Policies.

C. From the Windows Firewall with Advanced Security console, create an inbound rule.

D. From the Windows Firewall with Advanced Security console, create a connection security rule.


参考答案:D

第9题:

You work as a Web Developer at Certkiller.com. You are in the process of creating a Webapplication using Microsoft ASP.NET 3.5. The following markup should be added to a page:   The Question control is a custom server control that originates from the WebControl. This controldoes not implement any interfaces. The following characteristics are applied to the control’s class:ToolboxData, Designer, and DefaultProperty. You have to make sure that the Question control is able to participate in server-side validation onthis page. What should you do?()

  • A、You should consider modifying the Question control’s class in order to implement IValidator.
  • B、You should consider setting the ValidationGroup property of the RequiredFieldValidator controlto UserControl.
  • C、You should apply the ValidationProperty feature to the Question control’s class.
  • D、You should consider setting the InitialValue property of the RequiredFieldValidator control to anempty string.

正确答案:C

第10题:

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.

正确答案:A,D

更多相关问题