J
Jason
I have a textbox that I want to validate a textbox for a date like
"01/01/2000 03:00PM"
The below validates nicely for 01/01/2000.
What's the easiest way to do this in asp.net 2.0 / vb.net?
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:TextBox ID="TextBox1" runat="server" ></asp:TextBox>
<br />
<asp:comparevalidator ID=cvJobExpires Runat="server"
Operator="DataTypeCheck" Type="Date" ControlToValidate="TextBox1"
Display=Dynamic>not a valid date.</asp:comparevalidator><br />
<br />
<asp:Button ID="Button1" runat="server" Text="Button" />
</form>
</body>
</html>
If a regular expression validator or codebehind logic, do you have
sample code?
Thanks.
"01/01/2000 03:00PM"
The below validates nicely for 01/01/2000.
What's the easiest way to do this in asp.net 2.0 / vb.net?
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:TextBox ID="TextBox1" runat="server" ></asp:TextBox>
<br />
<asp:comparevalidator ID=cvJobExpires Runat="server"
Operator="DataTypeCheck" Type="Date" ControlToValidate="TextBox1"
Display=Dynamic>not a valid date.</asp:comparevalidator><br />
<br />
<asp:Button ID="Button1" runat="server" Text="Button" />
</form>
</body>
</html>
If a regular expression validator or codebehind logic, do you have
sample code?
Thanks.