Export (0) Print
Expand All

Calendar.SelectorStyle Property

Gets the style properties for the week and month selector column.

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)

public TableItemStyle SelectorStyle { get; }
/** @property */
public TableItemStyle get_SelectorStyle ()

public function get SelectorStyle () : TableItemStyle

Property Value

A TableItemStyle that contains the style properties for the week and month selector column. The default value is an empty TableItemStyle.

Use this property to specify the style for the week and month selector column. For more information on the different style properties that can be controlled, see TableItemStyle.

The SelectorStyle property applies only when the SelectionMode property is set to CalendarSelectionMode.DayWeek or CalendarSelectionMode.DayWeekMonth.

The following code example demonstrates how to use the SelectorStyle property to specify a light gray background color for the selector column.

<%@ Page Language="C#" AutoEventWireup="True" %>
<html>
<head>

</head>
<body>

   <form runat="server">

      <h3>Calendar Example</h3>

      <asp:Calendar id="calendar1" runat="server"
           SelectionMode="DayWeekMonth"
           SelectMonthText="&lt;*&gt;"
           SelectWeekText="-&gt;"/>

         <SelectorStyle BackColor="LightGray">
         </SelectorStyle>

      </asp:Calendar>
 
   </form>
        

</body>
</html>


Windows 98, Windows 2000 SP4, 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, 1.0

Community Additions

ADD
Show:
© 2014 Microsoft