验证码图像无法正确显示 [英] Captcha image not displaying correctly

查看:329
本文介绍了验证码图像无法正确显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我对Captcha图像有一个问题。它在我的aspx页面中显示不正确。

我添加了dll和xml required.Also我注册了它在我的aspx页面中。

<%@ Register Assembly =MSCaptchaNamespace =MSCaptchaTagPrefix =cc1%>

我也在我的web.config文件...可能是哪里有问题请帮忙...

当我右键单击n时查看图像我收到404错误..在我的web.cofig文件中

我这样添加了

Hi Everybody,
I have one problem with Captcha image.Its not displaying properly in my aspx page.
I added dll and xml required.Also I registered it in my aspx page.
<%@ Register Assembly="MSCaptcha" Namespace="MSCaptcha" TagPrefix="cc1" %>
Also I added it in my web.config file...where might be the problem please help...
When i right click n see view image am getting 404 error..In my web.cofig file
I added like this

<httpHandlers>
        <add verb="GET" path="CaptchaImage.axd" type="MSCaptcha.CaptchaImageHandler, MSCaptcha" />

推荐答案

hi Radhika,





查看此链接 http://www.aspsnippets.com/Articles/How-to-implement-Captcha-in-ASP.Net.aspx [ ^ ]
hi Radhika,


Check out this link http://www.aspsnippets.com/Articles/How-to-implement-Captcha-in-ASP.Net.aspx[^]


Radhika,



你可以试试这个...



Hi, Radhika,

You can try with this...

<system.webServer>
    <handlers>
       <add name="CAPTCHAHandler" verb="GET" path="CaptchaImage.axd" type="MSCaptcha.CaptchaImageHandler, MSCaptcha" />
     </handlers>
 </system.webServer>


这篇关于验证码图像无法正确显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆