YouTip LogoYouTip

Prop Webcontrol Calendar Selectorstyle

ASP.NET Calendar SelectorStyle Property | Tutorial

Tutorial -- Learning is not just about technology, it's about dreams!

ASP.NET Tutorial

ASP.NET Tutorial ASP.NET Introduction

WP Tutorial

WebPages Introduction WebPages Razor WebPages Layout WebPages Folders WebPages Global WebPages Forms WebPages Objects WebPages Files WebPages Helpers WebPages WebGrid WebPages Chart WebPages Email WebPages PHP WebPages Publishing WebPages Examples

WP Reference

WebPages Classes WebPages Security WebPages Database WebPages WebMail WebPages Helpers

ASP.NET Razor

Razor Introduction Razor Syntax Razor C# Variables Razor C# Loops Razor C# Logic Razor VB Variables Razor VB Loops Razor VB Logic

ASP.NET MVC

MVC Introduction MVC Application MVC Folders MVC Layout MVC Controllers MVC Views MVC Database MVC Models MVC Security MVC HTML Helpers MVC Publishing MVC Reference

WF Tutorial

WebForms Introduction WebForms Pages WebForms Controls WebForms Events WebForms Forms WebForms ViewState WebForms TextBox WebForms Button WebForms Data Binding WebForms ArrayList WebForms Hashtable WebForms SortedList WebForms XML Files WebForms Repeater WebForms DataList WebForms Database Connection WebForms Master Pages WebForms Navigation WebForms Examples

WF Reference

WebForms HTML WebForms Controls WebForms Validation

ASP.NET Calendar SelectMonthText Property

ASP.NET Calendar SelectWeekText Property

ASP.NET Calendar SelectorStyle Property


Calendar Control Calendar Control


Definition and Usage

The SelectorStyle property is used to set or return the style for the week and month selectors.

Syntax

<asp:Calendar runat="server">
  <SelectorStyle style="value" />
</asp:Calendar>

or

<asp:Calendar runat="server" SelectorStyle-style="value" />
Attribute Description
style Specifies the style to set. See the Style Control for possible styles and their values.
value Specifies the value for the specified style.

Example 1

The following example shows one way to set the SelectorStyle in a calendar:

<form runat="server">
<asp:Calendar id="cal1" runat="server">
  <SelectorStyle ForeColor="#FF0000" />
</asp:Calendar>
</form>

Demo Example Β»


Example 2

The following example shows another way to set the SelectorStyle in a calendar:

<form runat="server">
<asp:Calendar id="cal2" runat="server"
  SelectorStyle-ForeColor="#FF0000" />
</form>

Try it - Demo

Set the SelectorStyle for a Calendar Control (with declaration and script)


Calendar Control Calendar Control

← Prop Webcontrol Calendar SelecProp Webcontrol Calendar Dayna β†’