My application is in Classic ASP. Currently SAVE functionality is taking around 30sec to complete and the process is:
- Reads the data from UI.
- Send to the Database.
- Retrieve saved data again from database to populate UI.
I need some other way to improve the performance by less then 10sec.
e.g: - Using XML and web services, but I do not want to save the xml file temporarily in the system.
- Using JQuery and Ajax .
Please suggest me which one is feasible and will take less effort to code also less maintainable.
Please provide me any code or reference if anyone have. As I do not have any experience in XML or JQuery or Ajax.
If you wanted more detail answer, please describe how you do your process now.
There are several reasons why your the process take too long, for example:
and many more.
For jQuery ajax sample (This is Ajax call with jQuery function):
Explanation are in the comment, this is basically the client-side. When data are sent to AjaxProcessPage.aspx, you can insert your process on that page.
For more information about jQuery Ajax:
http://api.jquery.com/category/ajax/
For more information about $.post() function of jQuery that I used:
http://api.jquery.com/jQuery.post/