0
Thanks.
But I don't have fixed Max & min date.
So, I write a code in Textchanged event & in that I'm checking the Textbox date with Max & min date.
If textbox date is between the range of min & max date then its ok else gives Errormessage.
0
Hi Just try below mentioned code.
<asp:TextBox ID="txtDate" runat="server" ReadOnly = "true"></asp:TextBox> <br />
<asp:RangeValidator runat="server" ID="RangeValidator1" Type="Date" ControlToValidate="txtDate" MaximumValue='09/20/2011' MinimumValue="09/01/2011"
ErrorMessage="Date should be between 09/01/2011 and 09/20/2011" Display="Dynamic" />