更多"You are creating a templated Web co"的相关试题:
[单项选择] 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.
[单项选择] 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.
[单项选择] 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 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 element of the new device's browser definition file.
D. Reference the class in the element of the new device's browser definition file.
[单项选择]Which major J-Web menu should you use to upgrade the JUNOS soft ware on the router?()
A. Monitor
B. Maintain
C. Diagnose
D. Configuration
[多项选择]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.