Task-Based Help > General C1Input Tasks > Selecting the Culture |
Note that the following topic shows how to use the Culture property for the C1InputCurrency control; however, the Culture property is available for all Input for ASP.NET Web Forms controls.
Using the Designer
You can choose a specific culture for any of the Input for ASP.NET Web Forms controls. To set the Culture property for the control, simply open its Tasks menu and select a culture from its drop-down list.
Using HTML Markup
To set the Culture value, use the following markup in the .aspx page:
To write code in Source View
<cc1:C1InputCurrency ID="C1InputCurrency1" runat="server"
Culture="English (United Kingdom)">
</cc1:C1InputCurrency>
Using Code
To set the Culture for the C1InputCurrency control, double-click the Web page to create an event handler for the Load event. Enter the following code for the Page_Load event:
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
Me.C1InputCurrency1.Culture = New System.Globalization.CultureInfo("en-GB") |
To write code in C#
C# |
Copy Code
|
---|---|
this.C1InputCurrency1.Culture = new System.Globalization.CultureInfo("en-GB"); |
This topic illustrates the following:
The following C1InputCurrency control shows the British Pound: