summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/Controls/Samples/TCaptcha/Home.page
blob: 888573f0bc359a9f84920696e6f38ba4d9c55f62 (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
<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>

<div class="last-modified">$Id$</div>
</com:TContent>