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"
/>