ASP.NET Calendar SelectedDates 屬性

ASP.NET Calendar SelectedDates 屬性

Calendar 控件 Calendar 控件

定義和用法

SelectedDates 屬性用于設(shè)置或返回日歷中被選的日期。

實(shí)例

下面的實(shí)例在某日期被選擇時(shí)輸出被選日期:

<script language="VB" runat="server">
Sub Change(obj As Object, e As EventArgs)
??Dim i As Integer
??For i = 0 To Cal1.SelectedDates.Count - 1
????Response.Write(Cal1.SelectedDates(i).ToShortDateString())
????Response.Write("<br />")
??Next i
End Sub
</script>

<form runat="server">
<asp:Calendar id="cal1" runat="server"
SelectionMode="DayWeekMonth"
OnSelectionChanged="Change" />
</form>

演示實(shí)例 ?
Calendar 控件 Calendar 控件
相關(guān)文章
亚洲国产精品第一区二区,久久免费视频77,99V久久综合狠狠综合久久,国产免费久久九九免费视频