试题详情
单项选择题You create a Web Form for the acceptance of donations. Users type donation amounts by using a TextBox control named txtAmount. The donation amount must be between 10 dollars and 10,000 dollars. You add the following RequiredFieldValidator and RangeValidator. During testing you learn that when users fail to enter values before submitting the Web Form to the server, the message "Please enter a value" appears, as shown below. You need to ensure that the message appears immediately following the txtAmount TextBox control without extra spaces. What should you do? ()

A、In the RangeValidator, set the Display property to Dynamic.

B、In the RangeValidator, set the Display property to Static.

C、In the RequiredFieldValidator, set the Display property to Dynamic.

D、In the RequiredFieldValidator, set the Display property to Static.

  • A
  • 关注下方微信公众号,在线模考后查看

热门试题