题目内容 (请给出正确答案)
[主观题]

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 create a control named Con…”相关的问题

第1题

You are creating a custom control. The UI of the control must contain several text boxes a
nd 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.

点击查看答案

第2题

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) appli

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application has a window named MainWindow that has a StackPanel control named sp as the root element.You want to create a Button control that contains a TextBlock control with the "Save" Text property.You need to create the control dynamically and add the control to sp.Which code segment should you write in the constructor of the MainWindow class?()

A.You use Microsoft .NET Framework 4 to create a Win

B.You use Microsoft .NET Framework 4 to create a Win

C.You use Microsoft .NET Framework 4 to create a Win

D.You use Microsoft .NET Framework 4 to create a Win

点击查看答案

第3题

You create a master page named PageBase.master. The master page contains a Label control n
amed lblTitle.You create a content page that references the master page.You need to change the Text property of the master page‘s lblTitle control from the content page.Which code segment should you use?()

A.You create a master page named PageBase.master. Th

B.You create a master page named PageBase.master. Th

C.You create a master page named PageBase.master. Th

D.You create a master page named PageBase.master. Th

点击查看答案

第4题

You use Microsoft .NET Framework 4 to create a Windows Presentation Framework (WPF) applic

You use Microsoft .NET Framework 4 to create a Windows Presentation Framework (WPF) application.You plan to create a custom control that contains four text input fields.Each of the text input fields within the control will contain a label.You need to ensure that the text input fields within the control can be validated by using a regular expression validator.Which class should you inherit from?()

A.TextBox

B.TextElement

C.UIElement

D.UserControl

点击查看答案

第5题

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.()

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 <capabilities> element of the new device‘s browser definition file.

D. Reference the class in the <controlAdapters> element of the new device‘s browser definitionfile.

点击查看答案

第6题

You create a Web Form. The Web Form allows users to recover their passwords. You add a Pas
swordRecovery 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 validdefinition 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.

点击查看答案

第7题

You use Microsoft .NET Framework 4 to create a Windows Forms application.You need to allow
the user interface to use the currently configured culture settings in the Control Panel.Which code segment should you use?()

A.Thread.CurrentThread.CurrentUICulture = Thread.CurrentThread.CurrentCulture;

B.Thread.CurrentThread.CurrentCulture = Thread.CurrentThread.CurrentUICulture;

C.Thread.CurrentThread.CurrentUICulture = CultureInfo.InstalledUICulture;

D.Thread.CurrentThread.CurrentCulture = CultureInfo.InstalledUICulture;

点击查看答案

第8题

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.

点击查看答案

第9题

You create a Web Form that allows users to create a new account. You add a CreateUserWizar
d control by using the following code segment.You need to ensure that the wizard automatically sends an e-mail message to users when they finish creating their accounts. You add a valid element to the Web.config file.Which code segment should you add to the Page_Load event?()

A.Wizard1.RequireEmail = True

B.Wizard1.Email = "user@address.com"

C.Wizard1.MailDefinition.From = "registration@mysite.com"

D.SmtpMail.SmtpServer = "mail.contoso.com"

点击查看答案

第10题

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

B. AppearanceEditorPart

C. PropertyGridEditorPart

D. LayoutEditorPart

点击查看答案
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改
温馨提示
每个试题只能免费做一次,如需多次做题,请购买搜题卡
立即购买
稍后再说
警告:系统检测到您的账号存在安全风险

为了保护您的账号安全,请在“赏学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!

微信搜一搜
赏学吧
点击打开微信
警告:系统检测到您的账号存在安全风险
抱歉,您的账号因涉嫌违反赏学吧购买须知被冻结。您可在“赏学吧”微信公众号中的“官网服务”-“账号解封申请”申请解封,或联系客服
微信搜一搜
赏学吧
点击打开微信