- 单项选择题You create a Web Form that contains a text box named txtDate. You want the text box to allow users to enter any valid date. You need to use an ASP.NET validation control to ensure that only valid date values are submitted to the server. What should you do? ()
A、Add a CompareValidator control to the Web Form. Set its ControlToValidate property to txtDate. Set its Type property to Date. Set its Operator property to DataTypeCheck.
B、Add a RangeValidator control to the Web Form. Set its ControlToValidate property to txtDate. Set its Type property to Date. Set its MinimumValue property to 01/01/1900 and its MaximumValue to the current date.
C、Add a CustomValidator control to the Web Form. Set its ControlToValidate property to txtDate. Write a function in the partial class that verifies the values as dates and returns a Boolean variable. Set the CustomValidators ClientValidationFunction to the name of your function.
D、Add a RegularExpressionValidator control to the Web Form. Set its ControlToValidate property to txtDate. Set the ValidationExpression property to ensure that the users input follows the format of nn-nn-nnnn, where n represents a number from 0 through 9.
- A
关注下方微信公众号,在线模考后查看
- 你需要设计一个方法去对IIS
- You have
- 请问,下面那个HTML元素能够在用户控件
- You have
- 你是 TestKing.co
- You are c
- 你创建了一个Web站点。在站点中每个页面
- You are the network
- You want to enable
- Your network contain
- You have
- 你的网络中包含一个活动目录域,域中的所有
- You are t
- Your company&e
- Your network&e
- Your network contai
- You are the adminis
- You are a&
- You have
- Your company has an