重要提示: 请勿将账号共享给其他人使用,违者账号将被封禁!
查看《购买须知》>>>
找答案首页 > 全部分类 > 计算机类考试
搜题
网友您好, 请在下方输入框内输入要搜索的题目:
搜题
题目内容 (请给出正确答案)
[单选题]

你正在创建一个Web窗体,它包含一个名为txtDate的文本框。你想让这个文本框允许用户输入任何有效的日期。为此,你需要使用一个ASP.NET验证控件去验证提交到服务器的是一个有效的日期值。你应该怎么做?()

A.增加一个CompareValidator控件到Web窗体。设置它的ControlToValidate属性值为txtDate; 设置它的Type属性值为Date;设置它的Operator属性值为DataTypeCheck。

B. 增加一个RangeValidator控件到Web窗体。设置它的ControlToValidate属性值为txtDate;设 置它的Type属性值为Date;设置它的MinimumValue属性值为01/01/1900;MaximumValue 属性值为当前日期。

C. 增加一个CustomValidator控件到Web窗体。设置它的ControlToValidate属性值为txtDate; 然后在partial 类写一个返回Boolean值的日期验证方法。然后设置ClientValidationFunction 属性值为刚才方法的名称。

D. 增加一个RegularExpressionValidator控件到Web窗体。设置它的ControlToValidate属性值为 txtDate;设置ValidationExpression属性值为验证用户输入数据格式为nn-nn-nnnn的正则表 达式,其中n代表从0到9的数字。

查看答案
更多“你正在创建一个Web窗体,它包含一个名为txtDate的文本框。你想让这个文本框允许用户输入任何有效的日期。为此,你需要使用一个ASP.NET验证控件去验证提交到服务器的是一个有效的日期值。你应该怎么…”相关的问题

第1题

YouhaveaWindowsServer2008R2thathastheActiveDirectoryCertificateServicesserverroleinstalled

.Youneedtominimizetheamountoftimeittakesforclientcomputerstodownloadacertificaterevocationlist(CRL).Whatshouldyoudo()

A.InstallandconfigureanOnlineResponder.

B.Installandconfigureanadditionaldomaincontroller.

C.ImporttheRootCAcertificateintotheTrustedRootCertificationAuthoritiesstoreonallclientworkstations.

D.ImporttheIssuingCAcertificateintotheTrustedRootCertificationAuthoritiesstoreonallclientworkstations.

点击查看答案

第2题

Your network contains a server named Server1 that runs Windows Server 2008 R2. Server1 is

located in a branch office. You view the BranchCache configuration of Server1 as shown in the exhibit. (Click the Exhibit button.) You need to ensure that client computers in the branch office retrieve cached files from Server1 only.What should you do on Server1?()

A.Install the BranchCache for Network Files role service

B.Install the Services for Network File System role service

C.Run netsh.exe branchcache set service mode=DISTRIBUTED

D.Run netsh.exe branchcache set service mode=HOSTEDSERVER

点击查看答案

第3题

YouhaveaWindowsServer2008R2EnterpriseRootCA.Securitypolicypreventsport443andport80frombein

gopenedondomaincontrollersandontheissuingCA.YouneedtoallowuserstorequestcertificatesfromaWebinterface.YouinstalltheActiveDirectoryCertificateServices(ADCS)serverrole.Whatshouldyoudonext()

A.ConfiguretheOnlineResponderRoleServiceonamemberserver.

B.ConfiguretheOnlineResponderRoleServiceonadomaincontroller.

C.ConfiguretheCertificateEnrollmentWebServiceroleserviceonamemberserver.

D.ConfiguretheCertificateEnrollmentWebServiceroleserviceonadomaincontroller.

点击查看答案

第4题

You are developing a Windows Communication Foundation (WCF) REST service to provide access

to a library book catalog. The following code segment defines the service contract. (Line numbers are included for reference only.)01 [ServiceContract()]02 [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]03 public Class LibraryService04 {05 public Book GetBookByTitle(string title)06 {07 ...08 }0910 [WebGet(UriTemplate = "Book/{id}")]11 public Book GetBookById(string id)12 {13 ...14 }15 }Library patrons want the ability to search the catalog by title.You need to ensure that the GetBookByTitle method is exposed as a service method.Which code segment should you insert at line 04?()

A. [WebGet(UriTemplate = "Book/{title}")]

B. [WebGet(UriTemplate = "BookByTitle/{title}")]

C. [WebGet(UriTemplate = "Book/{titleToSearch}")]

D. [WebGet(UriTemplate = "{titleToSearch}")]

点击查看答案

第5题

你为 Web 窗体写了一个记录日志的方法,并且在 Page_Unload 事件处理中调用这个方法。但是,通过你测试这个Web窗体后发现,Page_Unload事件处理并没有去调用这个写日志的方法。 你需要保证这个写日志的方法一定被调用,请从下面的答案中选出两个可能的方法?()

A. 设置页属性 AutoEventWireup="False"。移除Web窗体元素中onunload="Page_Unload" 。

B. 设置页属性 AutoEventWireup="False"。在Web窗体元素中增加 OnUnload="Page_Unload" 。

C. 设置页属性AutoEventWireup="False"。增加Web窗体属性autocomplete=on。

D. 设置页属性AutoEventWireup="True".

点击查看答案

第6题

You are creating an application using Visual Studio 2010. The application consumes a Windo

ws Communication Foundation (WCF) service.You are adding a service reference to the WCF service. You need to ensure that the generated proxy does not block the calling thread when executing a service method.What should you do when adding the service reference? ()

A. Set the Collection type to ObservableCollection.

B. Select the Reuse types in all referenced assemblies option.

C. Select the Generate asynchronous operations option.

D. Select the Always generate message contracts option.

点击查看答案

第7题

您在Hi-tech.com做应用程序开发。您正在编写类名为MyDictionary的自定义字典。您需要确保该字典是类型安全的字典。您应该使用哪个代码段?()

A.ClassMyDictionaryImplementsDictionary(OfString,String)

B.ClassMyDictionaryInheritsHashTable

C.ClassMyDictionaryImplementsIDictionary

D.

点击查看答案

第8题

YourcompanyhasaserverthatrunsWindowsServer2008R2.ActiveDirectoryCertificateServices(ADCS)i

sconfiguredasastandaloneCertificationAuthority(CA)ontheserver.YouneedtoauditchangestotheCAconfigurationsettingsandtheCAsecuritysettings.Whichtwotasksshouldyouperform()

A.ConfigureauditingintheCertificationAuthoritysnap-in.

B.Enableauditingofsuccessfulandfailedattemptstochangepermissionsonfilesinthe%SYSTEM32%\CertSrvdirectory.

C.Enableauditingofsuccessfulandfailedattemptstowritetofilesinthe%SYSTEM32%\CertLog directory.

D.EnabletheAuditobjectaccesssettingintheLocalSecurityPolicyfortheActiveDirectoryCertificateServices(ADCS)server.

点击查看答案

第9题

You develop a Windows Communication Foundation (WCF) service. It is used exclusively as an

intranet application and is currently unsecured. You need to ensure that the service meets the following requirements: The service now must be exposed as an Internet application. The service must be secured at the transport level. Impersonation and delegation cannot be enabled.What should you use? ()

A. basicHttpBinding and HTTP

B. basicHttpBinding and Kerberos

C. wsHttpBinding and Kerberos

D. wsHttpBinding and HTTPS

点击查看答案

第10题

Dictionary枚举数返回哪种对象?()

A.Object

B.Generic KeyValuePairt object

C.Key

D.Value

点击查看答案
下载上学吧APP
客服
TOP
重置密码
账号:
旧密码:
新密码:
确认密码:
确认修改
购买搜题卡查看答案
购买前请仔细阅读《购买须知》
请选择支付方式
微信支付
支付宝支付
选择优惠券
优惠券
请选择
点击支付即表示你同意并接受《服务协议》《购买须知》
立即支付
搜题卡使用说明

1. 搜题次数扣减规则:

功能 扣减规则
基础费
(查看答案)
加收费
(AI功能)
文字搜题、查看答案 1/每题 0/每次
语音搜题、查看答案 1/每题 2/每次
单题拍照识别、查看答案 1/每题 2/每次
整页拍照识别、查看答案 1/每题 5/每次

备注:网站、APP、小程序均支持文字搜题、查看答案;语音搜题、单题拍照识别、整页拍照识别仅APP、小程序支持。

2. 使用语音搜索、拍照搜索等AI功能需安装APP(或打开微信小程序)。

3. 搜题卡过期将作废,不支持退款,请在有效期内使用完毕。

请使用微信扫码支付(元)
订单号:
遇到问题请联系在线客服
请不要关闭本页面,支付完成后请点击【支付完成】按钮
遇到问题请联系在线客服
恭喜您,购买搜题卡成功 系统为您生成的账号密码如下:
重要提示: 请勿将账号共享给其他人使用,违者账号将被封禁。
发送账号到微信 保存账号查看答案
怕账号密码记不住?建议关注微信公众号绑定微信,开通微信扫码登录功能
警告:系统检测到您的账号存在安全风险

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

- 微信扫码关注上学吧 -
警告:系统检测到您的账号存在安全风险
抱歉,您的账号因涉嫌违反上学吧购买须知被冻结。您可在“上学吧”微信公众号中的“官网服务”-“账号解封申请”申请解封,或联系客服
- 微信扫码关注上学吧 -
请用微信扫码测试
选择优惠券
确认选择
谢谢您的反馈

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

上学吧找答案