你正在为 Web 应用创建一个控件 ContosoUI。你需要增加这个控件到 Microsoft VisualStudio .NET 的工具栏。你应该通过下面那两个操作完成?()
A、创建ContosoUI控件为Web控件库。
B、创建ContosoUI控件为Web用户控件。
C、在Visual Studio .NET 工具栏,浏览并选择ContosoUI.ascx。
D、在Visual Studio .NET 工具栏,浏览并选择ContosoUI.dll.
A、创建ContosoUI控件为Web控件库。
B、创建ContosoUI控件为Web用户控件。
C、在Visual Studio .NET 工具栏,浏览并选择ContosoUI.ascx。
D、在Visual Studio .NET 工具栏,浏览并选择ContosoUI.dll.
A、确保Web控件从WebControl类继承。 B、确保Web控件从Control类继承. C、确保Web控件从CompositeControl类继承. D、确保Web控件从UserControl类继承.
A、A. 在连接上点击右键,然后单击属性,修改数据连接的数据提供程序属性。 B、B. 单击“更改”按钮,然后为选择的数据源改变数据提供程序。 C、C. 单击“高级”按钮,然后改变Data Source属性值为目标提供着。 D、D. 单击“高级”按钮,然后改变 Application Name 属性值为目标提供着。
A、A.创建ContosoUI控件为Web控件库。 B、B.创建ContosoUI控件为Web用户控件。 C、C.在VisualStudio.NET工具栏中,浏览并选择ContosoUI.ascx。 D、D.在VisualStudio.NET工具栏中,浏览并选择ContosoUI.dll。
A、重载(Override)基类的方法EnsureChildControls。增加子控件到base container。 B、重载(Override)基类的方法CreateControlCollection。增加子控件到 ControlCollection 类。 C、重载(Override)基类的方法CreateChildControls。增加子控件到base container。 D、重载(Override)基类的方法DataBindChildren。增加子控件到 ControlCollection 类。
A、A.控件从System.Web.UI.Control继承。 B、B.控件从System.Web.UI.WebControls.CompositeControl继承. C、C.控件从System.Web.UI.WebControls.WebControl继承. D、D.控件从System.Web.UI.UserControl继承
A、设置Web窗体上验证控件的Enabled 属性为False。 B、设置btnCancel 按钮的CausesValidation 属性为False. C、设置btnCancel 按钮的CausesValidation 属性为True. D、设置Web窗体上验证控件的Visible 属性为False。
A、实现INaming Container接口. B、重载Create Child Controls方法,并创建子控件。 C、重载Controls属性,并调用Ensure Child Controls方法. D、增加控件到.ascx文件.