I want to update a current ASP.NET webforms e-commerce site with a nice one-page checkout and I'm looking for some "best practice" on how to update the data. The page will consist of several parts: the cart, user identification, payment options, delivery options etc.
If the user changes the payment option this might result in changes in other parts of the page, like the delivery option becomes unavailable and the total cost changes.
Do I build my webservices so they return the full pre-calculated html when the user changes something on the page? Or do I return some kind of order-object in json format and update all the different parts that need updating with javascript?
The second option seem cleaner to me but is it too slow for a normal page? Or does it exist a third option?