CMS专题

单选题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

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

参考答案和解析
正确答案: B
解析: 暂无解析
如果没有搜索结果,请直接 联系老师 获取答案。
相似问题和答案

第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.

正确答案:C,D

第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.

正确答案:C,D

第3题:

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

第4题:

You are implementing an ASP.NET Web application. Users will authenticate to the application with an ID. The application will allow new users to register for an account. The application will generate an ID for the user based on the users full name. You need to implement this registration functionality. Which two actions should you perform?()

  • A、Configure the SqlMembershipProvider in the web.config file.
  • B、Configure the SqlProfileProvider in the web.config file.
  • C、Create an ASP.NET page that contains a default CreateUserWizard control to create a new user account.
  • D、Create an ASP.NET page that contains a custom form that collects the user information and then uses the Membership.CreateUser method to create a new user account.

正确答案:A,D

第5题:

You are creating a custom control. The UI of the control must contain several text boxes and two buttons. The control must be available in the global assembly cache for reuse across multiple Web applications. You need to achieve this functionality by using the minimum amount of code. What should you do? ()

  • A、Create a control that derives from System.Web.UI.Control.
  • B、Create a control that derives from System.Web.UI.WebControls.CompositeControl.
  • C、Create a control that derives from System.Web.UI.WebControls.WebControl.
  • D、Create a control that derives from System.Web.UI.UserControl.

正确答案:B

第6题:

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

第7题:

You create a Web Form. The Web Form allows users to recover their passwords. You add a PasswordRecovery server control by using the following code segment.You need to ensure that the server control generates a new password and sends it by e-mail to the users e?mail address. Which two actions should you perform?()

  • A、Create a valid definition in the Web.config file.
  • B、Set the passwordFormat attribute of the configured membership provider to Encrypted.
  • C、Ensure that the enablePasswordRetrieval attribute of the configured membership provider is set to False.
  • D、Ensure that the enablePasswordRetrieval attribute of the configured membership provider is set to True.

正确答案:A,C

第8题:

You create a Web Form for the acceptance of donations. Users type donation amounts by using a TextBox control named txtAmount. The donation amount must be between 10 dollars and 10,000 dollars. You add the following RequiredFieldValidator and RangeValidator. During testing you learn that when users fail to enter values before submitting the Web Form to the server, the message "Please enter a value" appears, as shown below. You need to ensure that the message appears immediately following the txtAmount TextBox control without extra spaces. What should you do? ()

  • A、In the RangeValidator, set the Display property to Dynamic.
  • B、In the RangeValidator, set the Display property to Static.
  • C、In the RequiredFieldValidator, set the Display property to Dynamic.
  • D、In the RequiredFieldValidator, set the Display property to Static.

正确答案:A

第9题:

You are developing and XBAP application for your company intranet. During several development iterations, you manually executable, application, and deployement manifest to the test Web Server. You create an HTML file that has a manifest that you use for testing. During the next iteration, you enchance the XBAP application by making changes. When you use the hyperlink to the deployment manifest to test the deployment, you do not see the changes. You need to ensure that the changes you make are visible when you test the deployment from your machine. What should you do ?()

  • A、 Restart Microsoft Internet Information Services (IIS). Then click the Install hyperlink again.
  • B、 Open Visual Studio command prompt and run mage -cc. Then click the Install hyperlink again.
  • C、 Delete the application, deployment, and executable files from Web Server. Then rebuild the XBAP solution files from the project bin directory to the Web Server and click the Install hyperlink again
  • D、 Delete the application, deployment, and executable files from Web Server. Then recopy the same files to the Web Server, restart IIS and click the Install hyperlink again

正确答案:C

第10题:

单选题
You are creating a custom control. The UI of the control must contain several text boxes and two buttons. The control must be available in the global assembly cache for reuse across multiple Web applications. You need to achieve this functionality by using the minimum amount of code. What should you do? ()
A

Create a control that derives from System.Web.UI.Control.

B

Create a control that derives from System.Web.UI.WebControls.CompositeControl.

C

Create a control that derives from System.Web.UI.WebControls.WebControl.

D

Create a control that derives from System.Web.UI.UserControl.


正确答案: D
解析: 暂无解析

更多相关问题