【问题标题】:How to fix the Ajax calender Month in asp.net?如何在 asp.net 中修复 Ajax 日历月?
【发布时间】:2012-08-08 22:41:20
【问题描述】:

我想动态修复日历延长月份,以便用户只能从显示的月份中选择日期

注意:

  1. 日历扩展器在 gridview 中。
  2. 根据gridview外部的组合框中选择的月份动态设置月份。
  3. 用户不能更改月份。

【问题讨论】:

    标签: asp.net .net c#-4.0 asp.net-ajax


    【解决方案1】:

    要隐藏月份导航,日历控件将属性 ShowNextPrevMonth 设置为 FALSE。 要在日历中隐藏另一个月份的日期,您必须在 DayRender Event 中对其进行管理。
    VB 示例。

    Protected Sub yourCalendar_DayRender(ByVal sender As Object, ByVal e As DayRenderEventArgs) Handles yourCalendar.DayRender
        If e.Day.IsOtherMonth Then
        e.Cell.Text = ""
        End If
    End Sub
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-10-29
      • 2011-11-17
      • 2023-04-02
      • 2023-03-10
      • 1970-01-01
      • 2019-05-27
      • 1970-01-01
      相关资源
      最近更新 更多