Which markup should you use?

You are developing an ASP.NET web page that includes a textbox control that has ID txtDate. You need to ensure that the user enters a valid date in the text box.
Which markup should you use?
A.

B. <asp:CompareValidator ID="valDate" runat="server"
Type="Date" ControlToCompare="txtDate"
Operator="DataTypeCheck"/>
C. <asp:CompareValidator ID="valDate" runat="server"
Type="Date" ControlToValidate="txtDate"
Operator="DataTypeCheck"/>
D. <asp:CompareValidator ID="valDate" runat="server"
Type="Date" ControlToValidate="txtDate"
Operator="Equal"/>

microsoft-exams

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.