question about Page_ClientValidate() function

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, but i still don't know how a browser can interpret those new
functions. The browser (IE, Netscape ..) on my desktop doens't know those
new functions, right? So they must be passed from aspnet (server) to the
browser by a way or another in order to be integrated into the browser.
You see what i don't understand?
Thanks

They are downloaded by browser through WebResource.axd http handler. View
HTML source of the page and you'll see something like <script
type="text/javascript" src="WebResource.axd?54Â£%Â£$%5whatever". in order to
see content of these files simply select File->Save As to a new directory (
you'll find all the files there, including javascripts as well).

Milosz gave you the answer that they are resources in System.Web assembly,
loaded with WebResource handler. You can also inspect all those resources by
getting Reflector, and viewing resources in System.Web assembly (especially
WebUIValidation.js)

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!