| |||||
Calendar ClassSystem.Web.UI.WebControls Namespace Displays a single month calendar that allows the user to select a specific day, week, or month.
RemarksWhile databinding is not supported for this control, the user may modify the contents of any day by hooking the DayRender event. ExampleThe following example illustrates how to declare a Calendar control at design time. <html>
<body>
<h3>Calendar Example</h3>
<form runat = "server">
<asp:calendar runat = "server"
font-size=11pt
cellpadding=5 cellspacing=5
borderstyle = "groove" borderwidth=2
showgridlines=true
nextprevformat = "ShortMonth"
nextprevstyle-forecolor = "white"
nextprevstyle-font-size=8pt>
<titlestyle
backcolor = "steelblue"
forecolor = "white"
font-size=11pt
font-bold />
<dayheaderstyle
font-bold
forecolor = "khaki"
backcolor = "maroon" />
<weekenddaystyle
backcolor = "palegoldenrod"
width = "50px"
height = "50px" />
<todaydaystyle
font-bold
forecolor = "blue"
borderwidth=3 />
<selecteddaystyle
backcolor = "darkgreen"
font-bold />
<othermonthdaystyle
forecolor = "gray"
width = "50px"
height = "50px" />
</asp:calendar>
</form>
</body>
</html>
|
| ||||
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme