Question: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 <asp:CompareValidator ID="valDate" runat="server" Type="Date" ControlToCompare="txtDate" Operator="Equal"/> 

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"/> 

+ Answer
+ Report
Total Preview: 1070

Copyright © 2024. Powered by Intellect Software Ltd