I'm using Visual Studio 2010 Ultimate/Framework 4.0 final and "Telerik RadControls for ASP.NET Ajax 2010.1.415.40" in a normal web application.
I have a Templated asp:Login control inside a RadAjax Panel; like this:
If I remove the
ClientEvents-OnRequestStart="function() {return false;}" form RadAjaxPanel, the client-side validation only works the first time the page loads. The first time I use a wrong username/password to login, the page comes back with no validator attached! and from now on the page only will validate server-side.
I tried almost everything I found around the internet and nothing seemed to be able to stop this behavior.
The only solution I've came across is that
return false on OnRequestStart!
Is there something I'm doing wrong?
Update: and this solution only works in firefox. Tested in IE and the faulty behavior persists...
Update2: I just found out that after the first callback returns,
Page_Validators is
[ ] while it was
[span#cph_l1_UserNameRequired.validation-error, span#cph_l1_PasswordRequired.validation-error] at the first load...
I'll try to reconstruct it on ResponseEnd...
Update3: It seems the whole mechanism is lost after the first callback. C# code:
Javascript (jQuery) Code:
but the
validationGroup is lost too; even if I reset the
Page_Validators as above and call the
Page_ClientValidate("Login1");
client-side function, the page stays valid!
Somebody help!!!