I am using VB.net as well as Jquery Datepicker for getting dates.
In my VB.net code
<tr>
<td>
DateOfReceiving:
</td>
<td colspan="3">
<asp:TextBox ID="DateOfReceivingTextBox" runat="server"
CssClass="pastdatepicker"
Text="DateOfReceiving" />
</td>
</tr>
I want to allow enter user only todays date or past date with format dd/mm/yyyy. I want vb.net custom validation for that.
Please help to write vb.net regular expression.
You can do this with a RangeValidator and a bit of VB.NET code:
Set the range for the validator in your code-behind, most likely in your Page_Load: