| 1 |
lars |
1 |
<com:TContent ID="body">
|
|
|
2 |
<h1>TCaptcha Samples</h1>
|
|
|
3 |
|
|
|
4 |
<h2>Validating CAPTCHA</h2>
|
|
|
5 |
<com:TCaptcha ID="Captcha" TokenImageTheme="5" />
|
|
|
6 |
<com:TTextBox ID="Input" />
|
|
|
7 |
<com:TButton Text="Regenerate" OnClick="regenerateToken" CausesValidation="false" />
|
|
|
8 |
<com:TButton Id="SubmitButton" Text="Submit" OnClick="buttonClicked" />
|
|
|
9 |
<com:TCaptchaValidator CaptchaControl="Captcha" ControlToValidate="Input" Text="You are challenged!" />
|
|
|
10 |
|
|
|
11 |
<h2>Different Themes of TCaptcha</h2>
|
|
|
12 |
|
|
|
13 |
<table border="1">
|
|
|
14 |
<tr>
|
|
|
15 |
<th>Theme</th><th>Image</th>
|
|
|
16 |
</tr>
|
|
|
17 |
<com:TRepeater ID="CaptchaList">
|
|
|
18 |
<prop:ItemTemplate>
|
|
|
19 |
<tr>
|
|
|
20 |
<td>
|
|
|
21 |
<com:TLiteral Text="<%# $this->Data %>" />
|
|
|
22 |
</td>
|
|
|
23 |
<td>
|
|
|
24 |
<com:TCaptcha TokenImageTheme="<%# $this->Data %>" MaxTokenLength="5"/>
|
|
|
25 |
</td>
|
|
|
26 |
</tr>
|
|
|
27 |
</prop:ItemTemplate>
|
|
|
28 |
</com:TRepeater>
|
|
|
29 |
</table>
|
|
|
30 |
|
|
|
31 |
<div class="last-modified">$Id: Home.page 2182 2007-08-30 15:40:24Z xue $</div>
|
|
|
32 |
</com:TContent>
|