blob: ba3a35dbe12357db448ace80864b17d9f649d5c5 (
plain)
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
|
<style>
.textbox
{
font-family: Arial, Helvetica, sans-serif;
font-size: 1.2em;
display: block;
width: 20em;
}
.textbox
{
padding: 2px 0px 4px 2px;
border:1px solid #eee;
}
input.textbox
{
background-color: #ffc;
}
.loader
{
position:absolute;
right:0px;
top:0px;
color:white;
background-color:#900;
padding: 0.5em 1em;
}
input.required
{
border: 1px solid red;
background-color: pink;
}
</style>
<com:TForm>
<com:TInPlaceTextBox
ID="Firstname"
Text="firstname"
CssClass="textbox"
ValidationGroup="Group"
/>
<com:TRequiredFieldValidator
ControlToValidate="Firstname"
ErrorMessage="Firstname required"
InitialValue="firstname"
ValidationGroup="Group"
/>
<br />
<com:TTextBox
ID="Lastname"
Text="lastname"
/>
<com:TRequiredFieldValidator
ControlToValidate="Lastname"
ErrorMessage="Lastname required"
InitialValue="lastname"
ValidationGroup="Group"
/>
<br />
<com:TActiveButton ID="active_button"
Text="Active Submit"
ValidationGroup="Group"
CausesValidation="true"
OnCallback="button_valid"
/>
<com:TButton ID="passive_button"
Text="Passive Submit"
ValidationGroup="Group"
CausesValidation="true"
OnClick="button_valid"
/>
<br />
<com:TActiveLabel ID="status" Text="Status:" />
<com:TJavascriptLogger />
</com:TForm>
|