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

Captcha causes other asp.net validator controls not to validate at client side

1 Answer 94 Views
Captcha
This is a migrated thread and some comments may be shown as answers.
Them
Top achievements
Rank 1
Them asked on 19 May 2012, 05:10 PM
Hi Telerik Team,

My environment is MOSS 2007, a published internet site (anonymous access enabled) with output cache enabled. Details:
- A Rad Catpcha control is used on a Page Layout. A page instance has been created (e.g. page1.aspx).
- A RadScriptManager is declared on the page layout.
- Some of ASP.NET controls (e.g. textbox) and some built-in ASP.NET validators are also used (e.g. RequiredFieldValidator).
- Web resource handler is also registered in web.config.

My problem is that all the asp.net validators are not got validated at client side on submission. After investigated, I guess the problem is because the rendered page (page1.aspx as the example above) could not reach the ScriptResource.axd but I don't know why and how to get client script validated on those server controls. If I remove the RadScriptManager and RadCaptcha from the page layout, everything works as normal (i.e. client side validation takes place).

Could you please help me on this?

P/S: everything works well on my edit site (the internal version of that published internet site).

Thanks,
Them

1 Answer, 1 is accepted

Sort by
0
Slav
Telerik team
answered on 23 May 2012, 11:07 AM
Hello Them,

This is quite a strange problem, it appears that something is breaking the client-side validation of your page. In case there are additional controls on the page, do they affect the client-side validation in any way? Are there any JavaScript errors on the page? Please verify if the presence of both RadScriptManager and RadCaptcha results in the examined behavior or if the effect is similar when only one of them is present (in this case, which one).

If your web site is running under IIS7 Integrated mode, the web server searches the HttpHandler registrations under the <system.webServer> section of web.config. In this case you should register the HttpHandlers as shown in the help article Registering the HttpHandlers on Windows Vista IIS 7 Integrated mode.

If you are still having problems after trying the suggestion above, please send your web.config, a live URL to your page so that I can examine the issue locally.

Greetings,
Slav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Captcha
Asked by
Them
Top achievements
Rank 1
Answers by
Slav
Telerik team
Share this question
or