cc2:CalendarExtender如何设置开始日期是今天?
How to set Startdate is Today in cc2:CalendarExtender?
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit"
TagPrefix="cc2" %>
<asp:TextBox ID="txtngaydat" runat="server"></asp:TextBox>
<cc2:CalendarExtender ID="CalNgayDat" TargetControlID="txtngaydat"
PopupButtonID="ibtCal" runat="server"></cc2:CalendarExtender>
我认为您需要在 Page_Load 事件上设置 StartDate。
protected void Page_Load(object sender, EventArgs e)
{
CalNgayDat.StartDate = DateTime.Now;
}
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit"
TagPrefix="cc2" %>
<asp:TextBox ID="txtngaydat" runat="server"></asp:TextBox>
<cc2:CalendarExtender ID="CalNgayDat" TargetControlID="txtngaydat"
PopupButtonID="ibtCal" runat="server"></cc2:CalendarExtender>
我认为您需要在 Page_Load 事件上设置 StartDate。
protected void Page_Load(object sender, EventArgs e)
{
CalNgayDat.StartDate = DateTime.Now;
}