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.
第1题:
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? ()
第2题:
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? ()
第3题:
Create a new custom class for the control that is derived from the Control class.
Create a new custom class for the control that is derived from the UserControl class.
Create a new custom class for the control that is derived from the ContentControl class.
Create a new custom class for the control that is derived from the ContentPresenter class.
第4题:
TextBox
TextElement
UIElement
UserControl
第5题:
Override the OnPaint method.
Write a code segment to handle the CellPainting event.
Write a code segment to handle the CellParsing event.
Write a code segment to handle the RowPostPaint event.
第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?()
第7题:
Add the following code segment to the Page_Load method of the page code-behind file. Dim custom As Custom = Me.Parent lblRegion.Text = custom.Region
Add the following code segment to the Page_Load method of the page code-behind file. Dim custom As Custom = Me.Master lblRegion.Text = custom.Region
Add the following code segment to the Page_Load method of the Custom.Master.vb code-behind file. Dim lblRegion As Label = Page.FindControl(lblRegion) lblRegion.Text = Me.Region
Add the following code segment to the Page_Load method of the Custom.Master.vb code-behind file. Dim lblRegion As Label = Master.FindControl(lblRegion) lblRegion.Text = Me.Region
第8题:
Name of the custom control
Comments to describe the custom control
List of the controls that will make up this custom control
Application that will contain the custom control
第9题:
Extend the Control class.
Extend the ContainerControl class.
Create protected accesses for each control property.
Create public accesses for the properties of the BindingSource control.
第10题:
Add a Web Control Library project to your solution. Define a class that inherits from CompositeControl.
Add a Windows Control Library project to your solution. Define a class that inherits from UserControl.
Add a Web User Control to your project. Define a class that inherits from UserControl.
Add a Mobile Web User Control to your project. Define a class that inherits from MobileUserControl.