I am new to ASP.NET and building a financial web application. I have a form with a code behind file. On my form I have 5 text boxes which populates on PageLoad event and user can modify the field values and update in database so therefore I have a button called "Update Details". I dont want to POSTBACK instead I want user to click on UPDATE Details and stay there.
My question is that can I utilize my code behind file开发者_运维技巧 and write a function there for example "Proc_UpdateProfile" and execute the procedure using $(ajax) of jquery or what will be the excelent method in terms of fast, reliable and top performance.
Do you think that calling dummy web service and a WebMethod using AJAX can achieve my goal?
Any other ideas would highly be appreciated with example.
Thanks
You could use PageMethods - see http://encosia.com/2008/05/29/using-jquery-to-directly-call-aspnet-ajax-page-methods/
If you want to make Proc_UpdateProfile a more general function to be called from elsewhere (other than this one page), then you could create a web service which would work in a similar way
you can use an update panel. If you are into JQuery look into BlockUI but there is a validation thing you have to figure out. Good luck. http://encosia.com/2008/10/04/using-jquery-to-enhance-aspnet-ajax-progress-indication/
For Financial application your data must be secured, so server side processing would be more secure....
As it is a Profile update calling an asp.NET method would be preferred via jQuery Ajax.
精彩评论