asp.net.ph

DayNameFormat Enumeration

System.Web.UI.WebControls Namespace


Specifies the display format for the days of the week on a Calendar control.

Members


Member Name Description
Full The days of the week displayed in full format. For example, Tuesday.
Short The days of the week displayed in abbreviated format ( default ). For example, Tues.
FirstLetter The days of the week displayed with just the first letter. For example, T.
FirstTwoLetters The days of the week displayed with just the first two letters. For example, Tu.

Remarks

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

Example

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

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

 Show me 

See Also

NextPrevFormat   TitleFormat 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