ComponentOne Calendar for ASP.NET: Calendar for ASP.NET AJAX Task-Based Help > Selecting the Culture

Selecting the Culture

This topic demonstrates how to set the culture to Spanish (Argentina) using the CultureInfo property.

To select the culture at design time:

You can choose a specific culture for the C1Calendar control. To set the CultureInfo property for the control, simply open its Properties window and select a culture from its drop-down list.

To select the culture using HTML code:

To set the CultureInfo value, use the following source code in the .aspx page:


  <cc1:C1Calendar ID="C1Calendar1" runat="server"

            CultureInfo="Spanish (Argentina)" height="180px" width="230px">


To select the culture programmatically:

To set the CultureInfo value programmatically in the code behind, enter the following code in the Page_Load event handler:

      Visual Basic

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

Dim Cinfo As System.Globalization.CultureInfo

Cinfo = New System.Globalization.CultureInfo("es-AR", True)

End Sub


private void Page_Load(object sender, System.EventArgs e)


  System.Globalization.CultureInfo Cinfo = new System.Globalization.CultureInfo("es-AR", true);

   C1Calendar1.CultureInfo = Cinfo;


This topic illustrates the following:

The following C1Calendar control shows the applied culture - Spanish (Argentina):


Send comments about this topic to ComponentOne.
Copyright 1987-2010 ComponentOne LLC. All rights reserved.