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

You create a server control that inherits from WebControl. You need to enable the server c

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

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

查看答案
如搜索结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能会需要:
您的账号:
发送账号密码至手机
发送
更多“You create a server control th…”相关的问题

第1题

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.

点击查看答案

第2题

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.

点击查看答案

第3题

You create an intranet Web site for management of project documents. You need to enable all users to browse documents on the site. Only members of the administrators group must be able to upload files. Which code segment of the Web.config file should you use? ()

A. <allow verbs="GET" users="*" /><deny verbs="POST" users="*" /><allow verbs="POST" roles="Administrators" />

B. <allow roles="Administrators" /><deny users="*" />

C. <allow u sers="Administrators" /><allow users="*" />

D. <allow v erbs = "POST" roles="Administrators" /><deny verbs="POST" users="*" /><allow verbs="GET" users="*" />

点击查看答案

第4题

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.

点击查看答案

第5题

You create an intranet Web site for management of project documents. You need to enable all users to browse documents on the site. Only members of the administrators group must be ble to upload files.Which code segment of the Web.config file should you use?()

A.

B.

C.

D.

点击查看答案

第6题

You create a Web Form. The Web Form uses the FormView control to enable a user to edit a record in the database. When the user clicks the Update button on the FormView control, the application must validate that the user has entered data in all of the fields. You need to ensure that the Web Form does not update if the user has not entered data in all of the fields. Which code segment should you use? ()

A. Protected Sub FormView1_ItemUpdating(ByVal sender As Object, _ ByVal e As System.Web.UI.WebControls.FormViewUpdateEventArgs) _ Handles FormView1.ItemUpdating Dim entry As DictionaryEntry For Each entry In e.Keys If entry.Value.ToString() = System.String.Empty Then e.Cancel = True Return End If Next entryEnd Sub

B. Protected Sub FormView1_ItemUpdated(ByVal sender As Object, _ ByVal e As System.Web.UI.WebControls.FormViewUpdatedEventArgs) _ Handles FormView1.ItemUpdated Dim entry As DictionaryEntry For Each entry In e.NewValues If entry.Value.Equals("") Then e.KeepInEditMode = True Return End If Next entryEnd Sub

C. Protected Sub FormView1_ItemUpdating(ByVal sender As Object, _ ByVal e As System.Web.UI.WebControls.FormViewUpdateEventArgs) _ Handles FormView1.ItemUpdating Dim entry As DictionaryEntry For Each entry In e.NewValues If entry.Value.Equals("") Then e.Cancel = True Return End If Next entryEnd Sub

D. Protected Sub FormView1_ItemUpdated(ByVal sender As Object, _ ByVal e As System.Web.UI.WebControls.FormViewUpdatedEventArgs) _ Handles FormView1.ItemUpdated Dim entry As DictionaryEntry For Each entry In e.Keys If entry.Value.ToString() = System.String.Empty Then e.KeepInEditMode = True Return End If Next entryEnd Sub

点击查看答案

第7题

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.

点击查看答案

第8题

YouhaveaservernamedServer1thathasthefollowingActiveDirectoryCertificateServices(ADCS)

roleservicesinstalled:

(Enterpriserootcertificationauthority(CA)

.CertificateEnrollmentWebService

.CertificateEnrollmentPolicyWebService

Youcreateanewcertificatetemplate.

Externalusersreportthatthenewtemplateisunavailablewhentheyrequestanewcertificate.Youverifythatallothertemplatesareavailabletotheexternalusers.

Youneedtoensurethattheexternaluserscanrequestcertificatesbyusingthenewtemplate.WhatshouldyoudoonServer1()

点击查看答案

第9题

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

点击查看答案

第10题

You have a server named Server1 that runs Windows Server 2003 Web Edition Service Pack 2 (SP2).You create a new virtual directory named App1. App1 contains a Web application.Users report that when they enter http://app1 in their Web browsers, they are unable to connect to the Web application.You need to ensure that users can access the Web application when they connect to http://app1.What should you do? ()

A. Move the content of the Web application to C:\App1. Change the home directory for App1.

B. Move the content of the Web application to C:\App1. Change the application pool for App1.

C. Remove the App1 virtual directory. Create a new Web site, and then configure the Web site to use port 8080. In DNS, create a Host record for App1.

D. Remove the App1 virtual directory. Create a new Web site, and then configure the Web site to use a host header of App1. In DNS, create a Host record for App1.

点击查看答案
热门考试 全部 >
相关试卷 全部 >
账号:
你好,尊敬的上学吧用户
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改
谢谢您的反馈

您认为本题答案有误,我们将认真、仔细核查,
如果您知道正确答案,欢迎您来纠错

警告:系统检测到您的账号存在安全风险

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

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