Well, Page.Validate() is a server side function and requires a postback. Its job is to run server side validation. My guess is that you want to run client-side validation.
Call Page_ClientValidate(). It returns true if the page was valid. If you are using ASP.NET 2.0, pass the validation group name as a parameter (Page_ClientValidate("") will handle when there is no group name.)
--- Peter Blum
Creator of Peter's Data Entry Suite (formerly Professional Validation And More and Peter's Date Package) and Peter's Polling Package
www.PeterBlum.com
Marked as answer by shekhar_249 on Apr 26, 2007 04:47 AM
If you correct the type, "Page", not "page", Page_ClientValidation("group") will work for you. It returns true when the group is valid and false when not.
--- Peter Blum
Creator of Peter's Data Entry Suite (formerly Professional Validation And More and Peter's Date Package) and Peter's Polling Package
www.PeterBlum.com
shekhar_249
Member
136 Points
72 Posts
How to call Page.Validate() using javascript
Sep 21, 2006 02:10 PM|LINK
Hi friends [:)]!!
I need ,
I want to call Page.Validate() using javascript can anybody help me ??'
Chandrashekhar Muradnar
Team Lead
PUNE INDIA
PLBlum
All-Star
30409 Points
5347 Posts
MVP
Re: How to call Page.Validate() using javascript
Sep 22, 2006 02:56 PM|LINK
Well, Page.Validate() is a server side function and requires a postback. Its job is to run server side validation. My guess is that you want to run client-side validation.
Call Page_ClientValidate(). It returns true if the page was valid. If you are using ASP.NET 2.0, pass the validation group name as a parameter (Page_ClientValidate("") will handle when there is no group name.)
Creator of Peter's Data Entry Suite (formerly Professional Validation And More and Peter's Date Package) and Peter's Polling Package
www.PeterBlum.com
shekhar_249
Member
136 Points
72 Posts
Re: How to call Page.Validate() using javascript
Sep 25, 2006 05:50 AM|LINK
Hey Peter Thank you for your kind help !!!
[:)]
Chandrashekhar Muradnar
Team Lead
PUNE INDIA
skingpower
Member
6 Points
6 Posts
Re: How to call Page.Validate() using javascript
Jul 11, 2007 12:24 AM|LINK
Can I call page_ClientValidation('group1') at client side?
Is there new version of webuivalidation.js for ASP .Net 20?
Thanks
skingpower
Member
6 Points
6 Posts
Re: How to call Page.Validate() using javascript
Jul 11, 2007 12:24 AM|LINK
Can I call page_ClientValidation('group1') at client side?
Is there new version of webuivalidation.js for ASP .Net 20?
Thanks
inPLBlum
All-Star
30409 Points
5347 Posts
MVP
Re: How to call Page.Validate() using javascript
Jul 12, 2007 05:38 PM|LINK
If you correct the type, "Page", not "page", Page_ClientValidation("group") will work for you. It returns true when the group is valid and false when not.
Creator of Peter's Data Entry Suite (formerly Professional Validation And More and Peter's Date Package) and Peter's Polling Package
www.PeterBlum.com
ad_dc
Member
73 Points
80 Posts
Re: How to call Page.Validate() using javascript
Apr 17, 2008 11:54 AM|LINK
hello, this is great , but I try to do something like that
but an erro in that line
ad_dc
Member
73 Points
80 Posts
Re: How to call Page.Validate() using javascript
Apr 17, 2008 01:06 PM|LINK
Well, I got it worked now
just using Page_ClientValidate instate of using Page_ClientValidation
so the code it like that
thank you , and I hope this may help
RamanaPV
Member
32 Points
25 Posts
Re: How to call Page.Validate() using javascript
Jun 25, 2008 08:34 AM|LINK
Hi,
Thank you very much, it helped me a lot.
Thanks
Ramana.PV
ccwang
Member
2 Points
2 Posts
Re: How to call Page.Validate() using javascript
Sep 25, 2008 01:37 AM|LINK
Thank for you all, who posted question and who answered the question correctly and clearly.
It solved my Questions.