Add Image verification codes To CS2.1

From:http://communityserver.org/forums/thread/557086.aspx

Find More in:http://dbvt.com/search/SearchResults.aspx?q=JpegImage.aspx&s=5

DownLoad The Patch at:http://dbvt.com/files/folders/addons/entry5198.aspx

1) Drop the DaveBurke.CS21.Captcha.dll into your \bin directory

2) Copy JpegImage.aspx into your web\blogs folder.

3) Now you'll need to update your Comment form and your Contact form.  Complete samples located in \samples folder.   DO NOT copy the sample files to your site, since they have been customized for my installation and will most likely conflict with your blog's theme.

COMMENT FORM

3A) Open your theme's SKIN-ENTRYVIEWCONTAINER.ASCX file and add the following register statement and replace the <blog:CommentForm /> with the line listed below.

<%@ Register TagPrefix="DBVT" Namespace="DaveBurke.CS21.Captcha" Assembly="DaveBurke.CS21.Captcha" %>

<DBVT:CommentForm runat="Server" id="form" />

3B) Open SKIN-COMMENTFORM.ASCX and add the following HTML between the tbComment Textbox and the ChkRemember Checkbox.  Feel free to reformat to match your comment form style.

<dt>
<dd>
    <asp:RequiredFieldValidator ID="reqCaptcha" runat="server" Display="Dynamic"
 ErrorMessage="Please enter the code" ControlToValidate="CodeNumberTextBox"></asp:RequiredFieldValidator>
    <asp:Label runat="server" ID="lblImage" Font-Bold="true" ForeColor="RED" />
    <p>
    </p>
</dd>
<dd>
    <img src="http://communityserver.org/blogs/JpegImage.aspx">&nbsp;&nbsp;
</dd>
</dt>
<dt>Enter Code Here: <em>Required</em>
<dd>
    <asp:TextBox ID="CodeNumberTextBox" runat="server" CssClass="codebox" />
</dd>
</dt>

[From AlphaWu.Blog]

转载于:https://www.cnblogs.com/AlphaWu/archive/2006/12/01/578842.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值