Design Code:-
<SharePoint:DateTimeControl ID="dtpstartDt" DateOnly="true" runat="server" IsRequiredField="true" CalendarImageUrl="/_layouts/images/calendar.gif"
CssClassTextBox="itw-longDate" LocaleId="7177" ToolTip="Example: 2000-12-31"
DatePickerFrameUrl="/_layouts/iframe.aspx" />
Page Load:-
dtpstartDt.DatePickerFrameUrl = SPContext.Current.Web.ServerRelativeUrl + "/_layouts/iframe.aspx";
dtpstartDt.MinDate = DateTime.Now.AddDays(-1);
<SharePoint:DateTimeControl ID="dtpstartDt" DateOnly="true" runat="server" IsRequiredField="true" CalendarImageUrl="/_layouts/images/calendar.gif"
CssClassTextBox="itw-longDate" LocaleId="7177" ToolTip="Example: 2000-12-31"
DatePickerFrameUrl="/_layouts/iframe.aspx" />
Page Load:-
dtpstartDt.DatePickerFrameUrl = SPContext.Current.Web.ServerRelativeUrl + "/_layouts/iframe.aspx";
dtpstartDt.MinDate = DateTime.Now.AddDays(-1);
No comments:
Post a Comment