<asp:TextBox ID="_txtLeadDate" runat="server"></asp:TextBox> <AjaxControl:CalendarExtender ID="_txtLeadDate_CalendarExtender" Format="dd/MMM/yyyy" runat="server" Enabled="True" TargetControlID="_txtLeadDate"></AjaxControl:CalendarExtender><br /> <asp:RequiredFieldValidator ID="RequirePreDate" runat="server" ControlToValidate="_txtLeadDate" ErrorMessage="Please select a Date" ForeColor="Red" Font-Size="10px" SetFocusOnError="True"></asp:RequiredFieldValidator>
protected void Page_Load(object sender, EventArgs e) { _txtLeadDate_CalendarExtender.StartDate = DateTime.Now.AddDays(-1); //to dissable past Date }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)