V
VC
I have a textbox where users type in a date. I want to check that the input
is between year 2000 and the current date.
Here is segment of the codes that give me the "Server tags cannot contain
<%...%> construct"
<asp:rangevalidator id="startDateValidator" runat="server" Type="Date"
MinimumValue="1/1/2000"
MaximumValue=<%=DateTime.Now.ToShortDateString()%>
..
..
..
</asp:rangevalidator >
Could anyone help me with codes/way to check whether a date input is within
a range of value, preferably without using the code behind?
is between year 2000 and the current date.
Here is segment of the codes that give me the "Server tags cannot contain
<%...%> construct"
<asp:rangevalidator id="startDateValidator" runat="server" Type="Date"
MinimumValue="1/1/2000"
MaximumValue=<%=DateTime.Now.ToShortDateString()%>
..
..
..
</asp:rangevalidator >
Could anyone help me with codes/way to check whether a date input is within
a range of value, preferably without using the code behind?