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
答案解析:有
微信扫一扫手机做题