1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
CodeFile="Culture.aspx.cs" Inherits="C1Input_Culture" Title="Untitled Page" %>
<%@ Register Assembly="C1.Web.UI.Controls.2" Namespace="C1.Web.UI.Controls.C1Input"
TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="DescriptionPlaceHolder1" runat="Server">
Define the cultural setting used by any Input control - this applies to string comparison, numeric and date time formats, and special characters.
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<h2>
Current Page Culture:
<asp:Label ID="Label1" runat="server" Text="English (Canada)"></asp:Label>
</h2>
<br />
<table style="width: 100%;">
<tr>
<td style="width: 25%; height: 11px; text-align: right">
<h3>
C1CurrencyInput:</h3>
</td>
<td style="height: 11px; text-align: left; width: 260px;">
<cc1:C1CurrencyInput ID="C1WebCurrencyEdit1" runat="server" Culture="English (Canada)"
Value="123.12" Width="150px"></cc1:C1CurrencyInput>
</td>
<td style="width: 265px; height: 11px; text-align: center">
</td>
</tr>
<tr>
<td style="width: 25%; height: 11px; text-align: right">
<h3>
C1PercentInput:</h3>
</td>
<td style="height: 11px; text-align: left; width: 260px;">
<cc1:C1PercentInput ID="C1PercentInput1" runat="server" Height="22px" Width="150px" />
</td>
<td style="width: 265px; height: 11px; text-align: center">
</td>
</tr>
<tr>
<td style="width: 25%; height: 11px; text-align: right">
<h3>
C1NumericInput:</h3>
</td>
<td style="height: 11px; text-align: left; width: 260px;">
<cc1:C1NumericInput ID="C1WebNumericEdit1" runat="server" Culture="English (Canada)"
DecimalPlaces="5" ThousandsSeparator="True" Value="1234567.99021" Width="150px">
</cc1:C1NumericInput>
</td>
<td style="width: 265px; height: 11px; text-align: center">
</td>
</tr>
<tr>
<td style="width: 25%; height: 11px; text-align: right">
<h3>
C1DateInput:</h3>
</td>
<td style="height: 11px; text-align: left; width: 260px;">
<cc1:C1DateInput ID="C1WebDateEdit1" runat="server" Culture="English (Canada)" Date="2007-06-10"
DateFormat="f" Width="180px"></cc1:C1DateInput>
</td>
<td style="width: 265px; height: 11px; text-align: center">
</td>
</tr>
<tr>
<td style="width: 25%">
</td>
<td style="width: 260px">
</td>
<td style="width: 265px">
</td>
</tr>
</table>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ControlOptionsHolder1" runat="Server">
<fieldset>
<legend>Change PageCulture</legend>
<div class="controloptionscontainer radio">
<div class="controloptions">
<asp:RadioButton ID="RadioButton1" runat="server" GroupName="culture" Text="English - Canada"
Checked="True" AutoPostBack="True" OnCheckedChanged="RadioButton_CheckedChanged" />
</div>
<div class="controloptions">
<asp:RadioButton ID="RadioButton2" runat="server" GroupName="culture" Text="English - United Kingdom"
AutoPostBack="True" OnCheckedChanged="RadioButton_CheckedChanged" />
</div>
<div class="controloptions">
<asp:RadioButton ID="RadioButton3" runat="server" GroupName="culture" Text="English - Trinidad and Tobago"
AutoPostBack="True" OnCheckedChanged="RadioButton_CheckedChanged" />
</div>
<div class="controloptions">
<asp:RadioButton ID="RadioButton4" runat="server" GroupName="culture" Text="French - Canada"
AutoPostBack="True" OnCheckedChanged="RadioButton_CheckedChanged" />
</div>
<div class="controloptions">
<asp:RadioButton ID="RadioButton5" runat="server" GroupName="culture" Text="French - Switzerland"
AutoPostBack="True" OnCheckedChanged="RadioButton_CheckedChanged" />
</div>
</div>
</fieldset>
</asp:Content>
|