Export (0) Print
Expand All

Calendar.WebCalendar Property

Gets the underlying Web Forms Calendar control.

Namespace: System.Web.UI.MobileControls
Assembly: System.Web.Mobile (in system.web.mobile.dll)

[BindableAttribute(false)] 
public Calendar WebCalendar { get; }
/** @property */
public Calendar get_WebCalendar ()

public function get WebCalendar () : Calendar

Property Value

The underlying Web Forms Calendar.

The ASP.NET mobile controls do not duplicate the properties of the ASP.NET Web Forms Calendar control that are not supported on mobile devices. Thus, if you want to use features that are available for the underlying Calendar control, you do so by accessing the System.Web.UI.WebControls.Calendar object through the WebCalendar property.

The following code example uses the WebCalendar property to apply formatting that is only available in the underlying System.Web.UI.WebControls.Calendar control. This example is part of a larger code sample for the Calendar overview.

// Distinguish the selected block using colors.
Calendar1.WebCalendar.SelectedDayStyle.BackColor =
   Color.LightGreen;
Calendar1.WebCalendar.SelectedDayStyle.BorderColor =
   Color.Gray;
Calendar1.WebCalendar.DayStyle.BorderColor = Color.Blue;

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1

Community Additions

ADD
Show:
© 2014 Microsoft