如何基于Ajaxtoolkit:Calendarextender的选定月份生成动态控件?

时间:2014-01-02 10:19:43

标签: c# asp.net .net

在我的.aspx页面中,值会根据ajaxToolkit:CalendarExtender中选定的月份显示在文本框中。

我必须根据选定的月份日生成动态标签和文本框。

我将根据选定的月份生成动态控件。

但是如何在aspx.cs选择月份之后在ajaxToolkit:CalendarExtender文件中触发事件/功能。

我必须尝试在过去2天内在Google中找到解决方案,但没有任何成功。

在aspx页面

<asp:TextBox runat="server" ID="txtHoliDate" AutoPostBack="True" OnTextChanged="txtHoliDate_TextChanged" />
<asp:ImageButton runat="Server" ID="Image1" ImageUrl="~/Admin/Images/Calendar_scheduleHS.png" AlternateText="Click to show calendar" Height="15px" CausesValidation="False"  /><br />
<ajaxToolkit:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtHoliDate"                                        PopupButtonID="Image1" TodaysDateFormat="d MMMM, yyyy" Format="dd-MM-yyyy" CssClass="clsCalendar" />

在aspx.cs文件中

protected void txtHoliDate_TextChanged(object sender, EventArgs e)
    {
// Some code here...
    }

0 个答案:

没有答案
相关问题