黄色电影一区二区,韩国少妇自慰A片免费看,精品人妻少妇一级毛片免费蜜桃AV按摩师 ,超碰 香蕉

ASP.NET CalendarDay IsSelected 屬性

ASP.NET CalendarDay IsSelected 屬性

CalendarDay 控件 CalendarDay 控件

定義和用法

IsSelected 屬性用于獲取日期在 Calendar 控件中是否被選定。

如果日期在 Calendar 控件中被選定,則該屬性返回 "TRUE",否則返回 "FALSE"。

實例

下面的實例顯示了被選定的日期是否在當(dāng)前的月份中:

<script runat="server">
Sub DaySelect(obj As Object, e As DayRenderEventArgs)
??If e.Day.IsSelected Then
????If e.Day.IsOtherMonth = "TRUE" Then
??????Label1.Text = "NO"
????Else
??????Label1.Text = "YES"
????End If
??End If
End Sub
</script>

<form runat="server">
??<asp:Calendar id="cal1" runat="server"
??OnDayRender="DaySelect"/>
??The selected date is in the current month:
??<asp:Label id="Label1" runat="server"/>
</form>

演示實例 ?
CalendarDay 控件 CalendarDay 控件
相關(guān)文章