Calendar Web 控件可以让我们在网页上显示月历,也可以取得使用者在月历上点选的日期。其使用语法为:
<ASP:Calendar
Id="被程序代码所控制的名称"
Runat="SERVER"
CellPadding="像素"
CellSpacing="像素"
DayNameFormat="FirstLetter | FirstTwoLetters | Full | Short"
FirstDayOfWeek="Default | Monday | Tuesday | Wednesday |
Thursday | Friday | Saturday | Sunday"
NextMonthText="HTML text"
NextPrevFormat="ShortMonth | FullMonth | CustomText"
PrevMonthText="HTML text"
SelectedDate="date"
SelectionMode="None | Day | DayWeek | DayWeekMonth"
SelectMonthText="HTML text"
SelectWeekText="HTML text"
ShowDayHeader="True | False"
ShowGridLines="True | False"
ShowNextPrevMonth="True | False"
ShowTitle="True | False"
TitleFormat="Month | MonthYear"
TodaysDate="date"
VisibleDate="date"
TodayDayStyle-property="value"
DayHeaderStyle-property="value"
DayStyle-property="value"
NextPrevStyle-property="value"
OtherMonthDayStyle-property="value"
SelectedDayStyle-property="value"
SelectorStyle-property="value"
StyeDayHeaderStyle-property="value"
TitleStyle-property="value"
TodayDayStyle-property="value"
WeekendDayStyle-property="value"
/>
文章来源于领测软件测试网 https://www.ltesting.net/