• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 437
  • Last Modified:

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.
0
23-degrees
Asked:
23-degrees
  • 3
  • 2
1 Solution
 
RobOwner (Aidellio)Commented:
Are you using AJAX at the moment?  If so with any libraries?
0
 
23-degreesAuthor Commented:
I'm using ASP.Net 2.0 AjaxControlToolkit. Also for certian client side stuff i use jQuery for example ThickBox.
0
 
RobOwner (Aidellio)Commented:
I would suggest using the Request Attention to put it in the ASP zone
0
 
23-degreesAuthor Commented:
I could not find any answer for this question.
0
 
23-degreesAuthor Commented:
Not answered.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now