
定义和用法
SelectionMode 属性用于设置或返回允许用户如何选择日期。
语法
<asp:Calendar SelectionMode="
mode" runat="server"
/>
属性 | 描述 |
---|---|
mode | 规定允许用户选择日期的方式。 可能的值:
|
实例
下面的实例设置了日历的 SelectionMode:
<form runat="server"> <asp:Calendar id="cal1" runat="server" SelectionMode="DayWeekMonth" /> </form>
