This is a migrated thread and some comments may be shown as answers.

click on Generate New image creates javascript error

1 Answer 34 Views
Captcha
This is a migrated thread and some comments may be shown as answers.
Gaurav
Top achievements
Rank 1
Gaurav asked on 01 Oct 2010, 07:57 AM
Hello friends 

I am working on asp.net 4.0 MVC2 

when i am using captcha control in webforms of my application it is wroking fine and generates new image on clicking 'Generate new image' smoothly
but

When I use captcha control on viewpage then it generates error in status bar ''__EVENTTARGET' is null or not an object' , When I click on Generate new image of Captcha .

below is the full error which generates on status bar .

Message: '__EVENTTARGET' is null or not an object
Line: 5
Char: 14923
Code: 0
URI: http://localhost:49745/ScriptResource.axd?d=BwKPZvDIDmwhWjYX4ApjIWW9-jbu7YR8CiNknEcofMLvmIbIuFTfGxzGlHBZ5QtetZZn1pwupgQhqBj0o785DdFZxqNS6iHUW4GVbD3Ycjs1&t=16ab2387

do something need full

Thanks
Gaurav

1 Answer, 1 is accepted

Sort by
0
Pero
Telerik team
answered on 05 Oct 2010, 02:36 PM
Hello Gaurav,

RadCaptcha requires: ViewState, page postbacks and HtmlForm in order to work correctly. In MVC framework there is none of the three, which means that you would not be able to use it in an MVC web application.

The following forum post provides more information: http://www.telerik.com/community/forums/aspnet-ajax/captcha/mvc.aspx

Regards,
Pero
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Captcha
Asked by
Gaurav
Top achievements
Rank 1
Answers by
Pero
Telerik team
Share this question
or