ASP.NET SelectionMode 属性
定義と用法
SelectionMode 属性は、ユーザーがどのように日付を選択するかを設定または返します。
この属性は、Calendar コントロール上の日期選択モードを設定または返します。このモードは、ユーザーが単日、週、または月を選択できることを指定します。
構文
<asp:Calendar SelectionMode="mode" runat="server" />
属性 | 説明 |
---|---|
mode |
ユーザーが選択する日付の方法を規定します。 可能な値:
|
例
以下の例では、日历の SelectionMode を設定しています:
<form runat="server"> <asp:Calendar id="cal1" runat="server" SelectionMode="DayWeekMonth" /> </form>
例
- Calendar コントロールの SelectionMode を設定する