Link to home
Start Free TrialLog in
Avatar of 23-degrees
23-degreesFlag for United States of America

asked on

How to run client side validation function and then call server side non-static function to save datat in ASP.NET 2.0?

Hi,

I've an application written ASP.NET 2.0. On a form i have a Submit button. I want it as follows;
1- User Clicks on Submit Button
2- Runs a client side validation function (and returns false or true)
3- If validation function returns True then form data should be saved into the DB through a server side method
4- Right after executing server side method, there should be a popup window showing summary of data just saved into the DB.

I've tried PageMethods but it can only execute Static functions so i am unable to access my page controls in that WebMethod.

Please help me in this regard.

Thanks.
Avatar of Rob
Rob
Flag of Australia image

Are you using AJAX at the moment?  If so with any libraries?
Avatar of 23-degrees

ASKER

I'm using ASP.Net 2.0 AjaxControlToolkit. Also for certian client side stuff i use jQuery for example ThickBox.
I would suggest using the Request Attention to put it in the ASP zone
ASKER CERTIFIED SOLUTION
Avatar of 23-degrees
23-degrees
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Not answered.