| 1: | What are the five Validation controls? |
| A1: | RequiredFieldValidator, CompareValidator, RangeValidator, RegularExpressionValidator, and CustomValidator. |
| 2: | True or false: Validation controls are created on the client side. |
| A1: | False. Validation controls are created server-side, just like all other server controls. |
| 3: | What two properties should every Validation control have? |
| A1: | ControlToValidate and ErrorMessage. |
| 4: | What does the clienttarget=downlevel parameter do? |
| A1: | It makes ASP.NET believe you're developing for an older browser, disabling all DHTML events (including Validation controls). |
| 5: | Assuming you have two server controls, tbName and tbAge, will the following validator work? <asp:CompareValidator runat="server" ControlToValidate="tbName" ValueToCompare="tbAge" ErrorMessage="Error!"/> |
| A1: | No, you should use ControlToCompare instead of ValueToCompare. |
| 6: | What's the property you need to set for the CustomValidator control that specifies the event handler? |
| A1: | OnServerValidate. |