asp.net.ph

Calendar.FirstDayOfWeek Property

System.Web.UI.WebControls Namespace   Calendar Class


Sets or retrieves the day of the week to display in the calendar's first column.

[ VB ]
Public Property FirstDayOfWeek As FirstDayOfWeek

[ C# ]
public FirstDayOfWeek FirstDayOfWeek {get; set;}

[ C++ ]
public: __property FirstDayOfWeek get_FirstDayOfWeek ( );
public: __property void set_FirstDayOfWeek ( FirstDayOfWeek );

[ JScript ]
public function get FirstDayOfWeek ( ) : FirstDayOfWeek;
public function set FirstDayOfWeek ( FirstDayOfWeek );

Property Value

One of the FirstDayOfWeek values. The default is Default.

Exceptions


Exception Type Condition
ArgumentException Occurs when the specified value is not one of the FirstDayOfWeek values.

Remarks

When programming this property is set using the FirstDayOfWeek enumeration.

The default value uses the server's local settings to determine the day.

Example

The following example demonstrates how to set the FirstDayOfWeek property to Monday.

<asp:Calendar id = "myCalendar" runat = "server"
   FirstDayOfWeek = "Monday" />
See Also

Calendar Members 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