当前位置:MCTS(70-528)题库

问题:

[单选] 你正在创建一个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的数字。

简述组织文化的建设的内涵与外延。 医疗器械经营企业销售人员销售医疗器械,应当提供加盖企业公章的授权书。授权书应当载明()、()、()、()。 You are developing a Windows Communication Foundation (WCF) service. You need to enable security auditing for all events. What should you do?() Set the serviceAuthorizationAuditLevel setting to Success and the messageAuthenticationAuditLevel setting to Success.。 Set the messageAuthenticationAuditLevel setting to Success and the auditLogLocation setting to Application.。 Set the serviceAuthorizationAuditLevel setting to SuccessAndFailure and the messageAuthenticationAuditLevel setting to SuccessAndFailure.。 Set the messageAuthenticationAuditLevel setting to SuccessAndFailure and the auditLogLocation setting to Security.。 下列关于违约责任特征的表述,正确的是()。 违约责任的产生是以合同当事人不履行合同义务为条件的。 违约责任具有相对性。 违约责任主要具有惩罚性。 违约责任可以由合同当事人约定,但约定不符合法律要求的,将会被宣告无效或被撤销。 违约责任是民事责任的一种形式。 As a network engineer, do you know for what purpose SDM uses Security Device Event Exchange(SDEE)?() to provide a keepalive mechanism。 to pull event logs from the router。 to extract relevant SNMP information。 to perform application-level accounting。 你正在创建一个Web窗体,它包含一个名为txtDate的文本框。你想让这个文本框允许用户输入任何有效的日期。为此,你需要使用一个ASP.NET验证控件去验证提交到服务器的是一个有效的日期值。你应该怎么做?()
参考答案:

  参考解析

本题暂无解析

在线 客服