这几天做一个项目,需要在一个页面中同时显示两个月的日历,并且当一个日历变化月份的时候,另一个也需要同步变化。
解决方法就是在一个页面中加两个日历控件,然后在Calendar的onvisiblemonthchanged事件中更新另一个Calendar的VisibleDate属性就可以了,代码如下

aspx页面
1如何让微软的日历控件同时显示两个月的日历<asp:Calendar ID="Calendar1" runat="server" Height="236px" OnVisibleMonthChanged="Calendar1_VisibleMonthChanged"
2如何让微软的日历控件同时显示两个月的日历        Width="273px"></asp:Calendar>
3如何让微软的日历控件同时显示两个月的日历    <asp:Calendar ID="Calendar2" runat="server" Height="195px" Width="271px" OnVisibleMonthChanged="Calendar2_VisibleMonthChanged">
4如何让微软的日历控件同时显示两个月的日历    </asp:Calendar>

cs页面
 1如何让微软的日历控件同时显示两个月的日历protected void Page_Load(object sender, EventArgs e)
 2


相关文章:

  • 2021-10-07
  • 2021-04-21
  • 2021-10-07
  • 2021-11-27
  • 2021-10-14
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-10
  • 2021-06-02
  • 2022-12-23
  • 2021-11-26
  • 2022-12-23
  • 2022-01-24
  • 2022-01-23
相关资源
相似解决方案