网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

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.

参考答案

更多 “ 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.” 相关考题
考题 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.

考题 Exhibit: You are developing a Web application. The Web application uses a GridView control to display data. You build your Web Forms for the Web application by dragging and dropping tables from the Data Connections tree in Server Explorer. You need to add a connection to your data by using the Add Connection dialog box as shown in the exhibit. During the process, you need to configure the .NET Data Provider that you use to create the data source objects. What should you do?()A. Right-click the connection, and click Properties. Modify the Provider property of the data connection.B. Click the Change button, and change the data provider for the selected data source.C. Click the Advanced button, and change the Data Source property to the target provider.D. Click the Advanced button, and change the Application Name property to the target provider.

考题 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.

考题 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 classC、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.

考题 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..

考题 You create a control named ContosoUI for a Web application. You need to add the control to the toolbox of Microsoft Visual Studio .NET. Which two actions should you perform?()A、Create the ContosoUI control as a Web Control Library.B、Create the ContosoUI control as a Web user control.C、Within the Visual Studio .NET toolbox, browse to and select ContosoUI.ascx.D、Within the Visual Studio .NET toolbox, browse to and select ContosoUI.dll.

考题 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.

考题 You create a Web server control named ContosoControls. You add a Web custom control named ContosoMailer to it. You then distribute the Web Control Library files to your team. You need to provide your team with the correct procedure for adding the Web Control Library to the items in the toolbox of Microsoft Visual Studio .NET. Which procedure should you provide to the team?()A、Within the toolbox, click Choose Items and then browse to and select the ContosoControls user control.B、Within the toolbox, click Choose Items and then browse to and select the ContosoMailer user control.C、Right-click Web Project, click Add Reference, and then browse to and select the ContosoControls.dll file.D、Within the toolbox, click Choose Items and then browse to and select the ContosoControls.dll file.

考题 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.

考题 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.

考题 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、BehaviorEditorPartB、AppearanceEditorPartC、PropertyGridEditorPartD、LayoutEditorPart

考题 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.

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

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

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

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