ASP.NET - My Captcha Control Image was not getting when I run my page.

0
May 05, 2016

Hi All,

My Captcha Control Image was not getting when I run my page.

Like This It was showing…

 

<%

@

Register

Assembly

="MSCaptcha"

Namespace

="MSCaptcha"

TagPrefix

="cc1"

%>

<

cc1

:

CaptchaControl

ID

="CaptchaControl1"

runat

="server"

/>

In Web.Config

<

add

verb

=

"

GET

"

path

=

"

CaptchaImage.axd

"

type

=

"

MSCaptcha.CaptchaImageHandler, MSCaptcha

"

/>

Previously when I used

Windows XP

My Captcha was getting

Now I am using

Windows 7

& My IIS also changed to

IIS 7.5

Please give the solution to me...

Thanks in advance,

VenkiDesai.

3

answers

Comments See all(0)

Add comment
0
May 05, 2016

Hi..

try to remove the reference to the MSCaptcha.dll and add it once again.

also register the MScaptcha..

<%@ Register Assembly="MSCaptcha" Namespace="MSCaptcha" TagPrefix="cc1" %>

// Add this Code on Web.config

< httpHandlers>

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

< /httpHandlers>

 

0
May 05, 2016

http://www.eggheadcafe.com/community/aspnet/17/10329391/how-to-use-captcha-in-my-project.aspx

http://www.mitchelsellers.com/blogs/articletype/articleview/articleid/178/implementing-captcha-in-a-dotnetnuke-module.aspx

The first step

is to add the proper register declaration to your user control.

This statement is what allows you to later declare and use the Captcha control in your page. You can simply copy and paste this code to the top portion of your .ascx file.

<%@ Register TagPrefix="dnn" Assembly="DotNetNuke" Namespace="DotNetNuke.UI.WebControls"%>

Declare the Control

The next step

is to actually place an instance of the control in your module.

Below is an example of a default configuration of the control, many other options exist for you to style the module to meet your needs, you can also implement a ResourceKey to allow localization of the error message.

<dnn:CaptchaControl ID="ctlCaptcha" CaptchaHeight="40" CaptchaWidth="150" </p>

ErrorStyle-CssClass="NormalRed" cssclass="Normal" runat="server"

ErrorMessage="The typed code must match the image, please try again"/>

As you can see this is a pretty simple step to complete, I have set the height and width of the captcha image to ensure that it fits nicely inside my area on the control, I also was sure to set the ErrorStyle and CssClass attributes to ensure that everything displays nicely with my skin. You have other options that you can configure here as well, including the number of characters and other items of that nature.

Validation of Captcha

The final step is to implement code

in the backend that validates the Captcha to ensure that the user supplied information was correct. Unlike other validation controls the Captcha does NOT validate prior to postback so this step is mandatory to ensure that the users supplied the Captcha. Below is some sample C# code to validate the Captcha, just a simple if statement.

if (ctlCaptcha.IsValid)

{

//Do your processing!

}

Hope this will help you.

 

0
May 05, 2016

For captcha control you can use this :

 

<http://code.google.com/apis/recaptcha/docs/aspnet.html>

 

OR

 

<http://www.mondor.org/captcha.aspx>

 

To Use this controls just add them in the toolBox By:

 

Right click on tool Box - >Add tab Now give name to this tab

 

next Add a control by -

>Right click on that tab - > Choose items.

..

 

Now locate the captcha dll file and click add to add it to the tab

 

To USe it

 

1.    Add line to your .aspx file:

<%</p>

@

Register

Assembly

="MSCaptcha"

Namespace

="MSCaptcha"

TagPrefix

="cc1"

%>

2.    Where needed, add the control itself:

<</p>

cc1

:

CaptchaControl

ID

="ccJoin"

runat

="server"

CaptchaBackgroundNoise

="none"

CaptchaLength

="5"

CaptchaHeight

="60"

CaptchaWidth

="200"

CaptchaLineNoise

="None"

CaptchaMinTimeout

="5"

CaptchaMaxTimeout

="240"

/>

3.    Put a textbox somewhere in your page where your user must enter what he sees in your captcha. Put this code (this example is in C#) to validate user input:

ccJoin.ValidateCaptcha(txtCap.Text);

if

(!ccJoin.UserValidated)

{

 //Inform user that his input was wrong ...

 return

;

}

Hope this will help you!

 

Note : Some captcha controls only work if internet is connected.

Related Questions

ASP.NET - My Captcha Control Image was not getting when I run my page.

Hi All, My Captcha Control Image was not getting when I run my page. Like This It was showing&amp;#8230; &amp;nbsp; &amp;lt;% @ Register Assembly =&amp;quot;MSCaptcha&amp;quot; Namespace =&amp;quot;M Read More

Views

70

Votes

0

Answers

3

May 05, 2016

ASP.NET - My Captcha Control Image was not getting when I run my page.

Hi All, My Captcha Control Image was not getting when I run my page. Like This It was showing&amp;#8230; &amp;nbsp; &amp;lt;% @ Register Assembly =&amp;quot;MSCaptcha&amp;quot; Namespace =&amp;quot;M Read More

Views

83

Votes

0

Answers

3

May 05, 2016

ASP.NET - My Captcha Control Image was not getting when I run my page.

Hi All, My Captcha Control Image was not getting when I run my page. Like This It was showing&amp;#8230; &amp;nbsp; &amp;lt;% @ Register Assembly =&amp;quot;MSCaptcha&amp;quot; Namespace =&amp;quot;M Read More

Views

56

Votes

0

Answers

3

May 05, 2016

This is the very first question

Hello guys! This is the first post in this site Read More

Views

2k

Votes

4

Answers

2

January 08, 2016

report values not showing up.

I have a crystal report which I pass a DataSet to using VB.NET. The report was working fine, but then I make some changes to the import query and now nothing shows up in the crystal report. Crystal do Read More

Views

1k

Votes

0

Answers

12

September 06, 2005

Event log doesn't overwrite as needed in SP4

Hello All, After upgrading from SP3 to SP4 on several Windows 2000 PRO machines everything looked fine, but from time to time applications can&#39;t write to the event log. When I try to view the appl Read More

Views

1k

Votes

0

Answers

9

May 11, 2003

"Failed to self-register XYZ.dll"

Hi there, I wrote a OLE-automation-server DLL in VB4.0. I use Installshield Express to install it as part of my program on the target computers. Now on some computers I get the message &quot;Failed to Read More

Views

5k

Votes

0

Answers

2

November 08, 1998

Please help understand these notes on image processing

Can someone please help me understand these lecture notes... On the right of the page; What does &quot;normalised by one notion of the area of a pixel&quot; mean? On the first formula for A, Is that a Read More

Views

1k

Votes

0

Answers

3

February 05, 2009

Can someone please explain this paragram on the chain rule in image processing

Please see the screenshot, How is 3133030 got from 10103322? Read More

Views

1k

Votes

0

Answers

1

January 05, 2009

AD on 2003

We have created an AD Domain on Windows 2000 Server with no problems. We just created an AD Domain on Windows 2003 and we&#39;re getting some weird problems. Both of these domains are behind firewalls Read More

Views

1k

Votes

0

Answers

15

May 11, 2003

ADDT ASP Upload Error " Type mismatch: 'tNG_isFileInsideBaseFolder' "

I am trying to create a simple insert record and upload image function on an ASP page built using Adobe Dreamweaver Developer Toolkit. I have done this many times before with no problem, however, i ha Read More

Views

1k

Votes

0

Answers

0

November 02, 2008

MYSQL Select query with custom ORDER BY

Hi, is it possible to customize the order of the returned rows in mysql? Example: I have a Table with a column &quot;name&quot;, now I want to have all entries ordered by name, but I want the entries Read More

Views

1k

Votes

0

Answers

5

July 02, 2010

Folder Redirection in Server 2003

We have a Windows Server 2003 Standard Ed. Is there a way to redirect the users my documents to a folder that has already been created on the server? Read More

Views

1k

Votes

0

Answers

2

July 05, 2007

Partiton magic  version 8.0 having error 1523 while executing batch

I followed the partition magic 8.0 wizard to partition my hard disk while rebooting &#160;I came across this problem &#160;&quot;error 1523 while executing batch&quot; What can I do to solve this prob Read More

Views

1k

Votes

0

Answers

2

May 11, 2003

Please explain this paragraph in image processing (screenshot attached)

Two questions; How is the equation (10.1-15) formed? &quot;are isotropic for rotation increments of 90 degrees and 45 degrees respectively&quot; What does this mean Read More

Views

984

Votes

0

Answers

7

January 05, 2009

xp_cmdshell with net use

Hi, when I use &#39;net use \192.168.0.1\c$ password /user:username&#39; at the command prompt, it works fine. &#160;But if i try to use it in sql with &quot; exec master..xp_cmdshell &#39;net use \19 Read More

Views

917

Votes

0

Answers

5

April 11, 2003

hp ux11

i have a hp ux11 server. and i edited the /etc/resolv.conf to use my win2003 server dns server. That went fine, however, I would like to go the other way and add an entry on my win2003 dns to resolve Read More

Views

562

Votes

0

Answers

3

October 12, 2009

Using an application over a LAN

I have written an application that needs to be used on a LAN. &#160;The application setup wizard takes care of registering everything on a single PC, but how do you go about writing a setup program th Read More

Views

487

Votes

0

Answers

9

August 07, 1998

Need subnet of 12 IPs.

Please, Can someone help me to create a subnet consisting of 12 IP&#39;s. Thanks.. Read More

Views

486

Votes

0

Answers

5

April 11, 2003

Drill down in a cross-tabl report

Hello, Would some experts to show me if it is possible to do drill-up or drill-down (or both) in a cross-tab report? I would also like to know if it is possible to control what fields to be displayed/ Read More

Views

400

Votes

0

Answers

0

September 06, 2005