ValidationSummary control at the top of the Web page
Q. You are developing a Web page that contains many validated controls. You want to provide a detailed message for each validation error, but the page doesn’t have sufficient space to provide the detailed message next to each control. What can you do to indicate an error at the control and list the detailed error messages at the top of the Web page?- Published on 27 Jul 15a.
- Set the Text property of the validator control to the detailed message. - Set the ErrorMessage property to an asterisk (*).
- Place a ValidationSummary control at the top of the Web page.
b.
- Set the ErrorMessage property of the validator control to the detailed message. - Set the Text property to an asterisk (*).
- Place a ValidationSummary control at the top of the Web page.
c.
- Set the ToolTip property of the validator control to the detailed message. - Set the ErrorMessage property to an asterisk (*).
- Place a ValidationSummary control at the top of the Web page.
d. None of the above
ANSWER:
- Set the ErrorMessage property of the validator control to the detailed message. - Set the Text property to an asterisk (*).
- Place a ValidationSummary control at the top of the Web page.