ASP.NET CalendarDay IsSelectable 属性
ASP.NET CalendarDay IsSelectable 属性
CalendarDay 控件定义和用法
IsSelectable 属性用于获取或设置日期是否为可选。
如果日期可选,则该属性返回 "TRUE",否则返回 "FALSE"。
实例
下面的实例显示了周末不可选的日历:
<script runat="server">
Sub DaySelect(obj As Object, e As DayRenderEventArgs)
If e.Day.IsWeekend Then
e.Day.IsSelectable = False
End If
End Sub
</script>
<form runat="server">
<form runat="server">
The weekends are not selectable
<asp:Calendar id="cal1" runat="server"
OnDayRender="DaySelect" />
</form>
Sub DaySelect(obj As Object, e As DayRenderEventArgs)
If e.Day.IsWeekend Then
e.Day.IsSelectable = False
End If
End Sub
</script>
<form runat="server">
<form runat="server">
The weekends are not selectable
<asp:Calendar id="cal1" runat="server"
OnDayRender="DaySelect" />
</form>
演示实例 »
相关文章
- ASP.NET Web Pages 图表
- ASP.NET Razor 标记
- ASP.NET Razor C# 循环和数组
- ASP.NET Web 表单
- ASP.NET 数据绑定
- ASP.NET RadioButtonList 控件
- ASP.NET BulletedList 控件
- ASP.NET Style 控件
- WebSecurity IsAuthenticated 属性
- WebSecurity CreateAccount 方法
- HTML InputHidden
- ASP.NET HTML 控件 Calendar 2
- ASP.NET HTML 控件 DataList
- ASP.NET HTML 控件 ArrayList DropDownLis
- ASP.NET HTML 控件 Hashtable RadiobuttonList 2
- VB 实例 使用数据库 根据数组显示条形图
- ASP.NET Calendar DayHeaderStyle 属性
- ASP.NET Calendar FirstDayOfWeek 属性
- ASP.NET Calendar NextMonthText 属性
- ASP.NET Calendar TodayDayStyle 属性