blob: 3782d82c73033ef23747fc3c1f83f792811132b5 (
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
|
<com:TContent ID="body">
<h1>TCaptcha Samples</h1>
<h2>Validating CAPTCHA</h2>
<com:TCaptcha ID="Captcha" TokenImageTheme="5" />
<com:TTextBox ID="Input" />
<com:TButton Text="Regenerate" OnClick="regenerateToken" CausesValidation="false" />
<com:TButton Id="SubmitButton" Text="Submit" OnClick="buttonClicked" />
<com:TCaptchaValidator CaptchaControl="Captcha" ControlToValidate="Input" Text="You are challenged!" />
<h2>Different Themes of TCaptcha</h2>
<table border="1">
<tr>
<th>Theme</th><th>Image</th>
</tr>
<com:TRepeater ID="CaptchaList">
<prop:ItemTemplate>
<tr>
<td>
<com:TLiteral Text="<%# $this->Data %>" />
</td>
<td>
<com:TCaptcha TokenImageTheme="<%# $this->Data %>" MaxTokenLength="5"/>
</td>
</tr>
</prop:ItemTemplate>
</com:TRepeater>
</table>
</com:TContent>
|