asp.net.ph

TitleFormat Enumeration

System.Web.UI.WebControls Namespace


Specifies the title format for the displayed month in a Calendar control.

Members


Member Name Description
Month Specifies that only the month is displayed in the calendar title. For example, January.
MonthYear Specifies that both the month and year are displayed in the calendar title ( default ). For example, January 2000.

Remarks

The TitleFormat enumeration represents the possible values that can be passed to the TitleFormat property of a Calendar control.

Example

The following example demonstrates how to programmatically set the TitleFormat of a Calendar at run time, based on a selected option.

void Page_Load ( Object src, EventArgs e ) {
   myCalendar.TitleFormat = ( TitleFormat ) formatList.SelectedIndex;
}

 Show me 

See Also

DayNameFormat   NextPrevFormat Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 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 asp.net.ph