473,396 Members | 1,965 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

question about Page_ClientValidate() function

Bob
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
Nov 17 '07 #1
2 13741
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

Nov 17 '07 #2
E.g down to the bottom these functions are just javascript accessing DOM
etc. E.g that base javascript.
--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net
"Teemu Keiski" <jo****@aspalliance.comwrote in message
news:O0**************@TK2MSFTNGP02.phx.gbl...
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


Nov 17 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Gert Van den Eynde | last post by:
Hi all, I have a question on interface design: I have a set of objects that are interlinked in the real world: object of class A needs for example for the operator() an object of class B. On...
3
by: Keith P. Boruff | last post by:
Hello all, Currently, in my work, I'm dealing with some old and sloppy C++ code (written before '93). I'm trying to put test harnesses around the stuff I'm working on (using Boost testsuite...
2
by: xideum | last post by:
Hi. Question: In a function that takes multiple arguments, each with a default value setis there anyway to either alter the order of the parameters you pass to it or skip the passing of certain...
1
by: peter pilsl | last post by:
I have a question to sql and dont know exactely if this is the right place to ask. If not I would be glad if anyone could point me to the correct group/list/resource. Thnx. I want to perform a...
8
by: Madhav | last post by:
Hi All, I was going through the concept of function overloading and the different ways of doing it. I thought overloading by return type could also have been implemented if the creater wanted...
5
by: Snis Pilbor | last post by:
Hello, Is there any actual difference between calling a function directly by name, vs. calling it by a function pointer which points to it? I read at the FAQ that the function name can be...
1
by: gdarian216 | last post by:
question on function and passing it an array this is what i have so far and im getting errors..... int dup_mark(int a, int b); int scores; int value;
10
by: colin | last post by:
Hi, I profile my code and find its spending a lot of time doing implicit conversions from similar structures. the conversions are mainly things like this class Point { implicit conversion...
0
by: Martin.Dong | last post by:
Hi, Which standard does the function "settimeofday" belong to, ISO C or POSIX, or .... ?? I have checked that the header <sys/time.hneeds to be included to use above function, and this header...
2
by: Oltmans | last post by:
Hi all, I'm stuck in a situation where I need help. Any help will be highly appreciated. I've created an object, after creating the object, I'm assigning one of its functions to an event handler...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.