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