diff options
author | wei <> | 2007-01-15 06:27:16 +0000 |
---|---|---|
committer | wei <> | 2007-01-15 06:27:16 +0000 |
commit | 50bbcdd07f6a5217edeb4b63f61246355bdd807f (patch) | |
tree | a08013344fe3075bb2b5ae5d8410c9111bd52ae8 /demos | |
parent | 430999ec4796a7ffd2ea1e6536fd0178111ffb32 (diff) |
add validation group
Diffstat (limited to 'demos')
-rw-r--r-- | demos/quickstart/protected/controls/Comments/CommentBlock.tpl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/demos/quickstart/protected/controls/Comments/CommentBlock.tpl b/demos/quickstart/protected/controls/Comments/CommentBlock.tpl index c9e7172b..9004610d 100644 --- a/demos/quickstart/protected/controls/Comments/CommentBlock.tpl +++ b/demos/quickstart/protected/controls/Comments/CommentBlock.tpl @@ -27,6 +27,7 @@ <span class="hint">(must have 5 or more posts in <a href="http://www.pradosoft.com/forum/" title="Prado Forums">forum</a>)</span>
<com:TRequiredFieldValidator
Style="font-weight: bold"
+ ValiationGroup="comment-group"
ControlToValidate="username"
ErrorMessage="*" />
</div>
@@ -35,6 +36,7 @@ <com:TActiveCustomValidator
ID="credential_validator"
ControlToValidate="password"
+ ValiationGroup="comment-group"
OnServerValidate="validate_credential"
EnableClientScript="false"
ErrorMessage="Incorrect username/password" />
@@ -52,7 +54,7 @@ </div>
<div class="submit">
- <com:TActiveButton ID="addComment" Text="Add Comment" OnClick="add_comment">
+ <com:TActiveButton ID="addComment" ValiationGroup="comment-group" Text="Add Comment" OnClick="add_comment">
<prop:ClientSide OnLoading="show_posting_comment()" OnSuccess="on_posting_success()" />
</com:TActiveButton>
<img id="comment-loading" src=<%~ ajax-loader.gif %> style="border:0 none;display:none"/>
|