All what the function does is defined in ASP.NET's client-side validsation
library which is loaded to the browser by ASP.NET when a page needing
validation controls is requested.
Starting in ASP.NEt 2.0 these functions (there are quite a alot of them)
have been written in cross-browser compatible way so they work in all modern
browsers.
For example Page_ClientValidate
function Page_ClientValidate(validationGroup) {
Page_InvalidControlToBeFocused = null;
if (typeof(Page_Validators) == "undefined") {
return true;
}
var i;
for (i = 0; i < Page_Validators.length; i++) {
ValidatorValidate(Page_Validators[i], validationGroup, null);
}
ValidatorUpdateIsValid();
ValidationSummaryOnSubmit(validationGroup);
Page_BlockSubmit = !Page_IsValid;
return Page_IsValid;
}
--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke http://teemukeiski.net
"Bob" <cq@qs.qdqdwrote in message
news:%2******************@TK2MSFTNGP04.phx.gbl...
Hi,
i know what the javascript function Page_ClientValidate() function does:
tests if all controls meet asp.net validation criteria. This function is
provided by asp.net.
But how can a browser (and escpecially firefox, netscape ..) understand
that function, because it's not pre-programmed in the browser like the
base javascript code.
Thanks
Bob