ASP.NET TodayDayStyle Property
Complete Calendar Control Reference
Definition and Usage
The TodayDayStyle property is used to set or return the style of the current
date in a calendar.
Syntax
<asp:Calendar runat="server">
<TodayDayStyle style="value" />
</asp:Calendar>
or
<asp:Calendar runat="server" TodayDayStyle-style="value" />
|
| Attribute |
Description |
| style |
Specifies the style to set. See the
Style Control to see the possible styles
and their values |
| value |
Specifies the value of the specified style |
Example 1
The following example shows one way to set the TodayDayStyle in a calendar:
<form runat="server">
<asp:Calendar id="cal1" runat="server">
<TodayDayStyle ForeColor="#FF0000" />
</asp:Calendar>
</form>
|
Show example »
|
Example 2
The following example shows another way to set the TodayDayStyle in a
calendar:
<form runat="server">
<asp:Calendar id="cal2" runat="server"
TodayDayStyle-ForeColor="#FF0000" />
</form>
|
Try-It-Yourself Demos
Set
TodayDayStyle of a Calendar control (with declaration and script)
Complete Calendar Control Reference

Whether you're new to XML or already an advanced user,
the user-friendly views and powerful entry helpers,
wizards, and debuggers in XMLSpy are designed to meet your XML
and Web development needs from start to finish.
New features in Version 2010!
- XML editor
- Graphical XML Schema / DTD editors
- XSLT 1.0/2.0 editor, debugger, profiler
- XQuery editor, debugger, profiler
- XBRL validator, taxonomy editor, taxonomy wizard
- Support for Office Open XML (OOXML)
- Graphical WSDL 1.1/2.0 editor & SOAP debugger
- JSON editing & conversion
- Java, C#, C++ code generation
- And much more!
Download a free trial today!
|
|
|
|