Solved

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

Posted on 2011-02-18
7
422 Views
Last Modified: 2012-05-11
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
Comment
Question by:23-degrees
  • 3
  • 2
7 Comments
 
LVL 42

Expert Comment

by:Rob Jurd, EE MVE
ID: 34947094
Are you using AJAX at the moment?  If so with any libraries?
0
 

Author Comment

by:23-degrees
ID: 34953236
I'm using ASP.Net 2.0 AjaxControlToolkit. Also for certian client side stuff i use jQuery for example ThickBox.
0
 
LVL 42

Expert Comment

by:Rob Jurd, EE MVE
ID: 34955988
I would suggest using the Request Attention to put it in the ASP zone
0
 

Accepted Solution

by:
23-degrees earned 0 total points
ID: 35154385
I could not find any answer for this question.
0
 

Author Closing Comment

by:23-degrees
ID: 35178895
Not answered.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer …
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now