A
Alan Silver
Hello,
I have just started using AJAX today, and I'm amazed at how easy it is!
Anyway, excitement aside, I have managed to convert an existing order
page to show the order total as the user changes values on the form
(quantity of items, delivery country, etc), and have an order summary,
which uses Literal controls to display the results.
The problem is that I would like the order summary information to be
outside of the UpdatePanel so it is further down the page, below the
Order button (asp:Button control) that submits the whole page. However,
if I move the Literal controls outside of the UpdatePanel, they don't
get updated by the AJAX code.
I can see two ways out of this, but I don't know how to do either!
1) Put the summary Literal controls in a second UpdatePanel, and set the
code to update that panel as well as the first.
2) Extend the existing UpdatePanel further down the page, but set the
Order button to do a normal page postback, not an AJAX one.
I don't know if either of these can be done, or how. Any help would be
greatly appreciated. TIA.
I have just started using AJAX today, and I'm amazed at how easy it is!
Anyway, excitement aside, I have managed to convert an existing order
page to show the order total as the user changes values on the form
(quantity of items, delivery country, etc), and have an order summary,
which uses Literal controls to display the results.
The problem is that I would like the order summary information to be
outside of the UpdatePanel so it is further down the page, below the
Order button (asp:Button control) that submits the whole page. However,
if I move the Literal controls outside of the UpdatePanel, they don't
get updated by the AJAX code.
I can see two ways out of this, but I don't know how to do either!
1) Put the summary Literal controls in a second UpdatePanel, and set the
code to update that panel as well as the first.
2) Extend the existing UpdatePanel further down the page, but set the
Order button to do a normal page postback, not an AJAX one.
I don't know if either of these can be done, or how. Any help would be
greatly appreciated. TIA.