Master Page problem

  • Thread starter Thread starter Code Monkey
  • Start date Start date
C

Code Monkey

Is it possible to update a section on a masterpage from a method on a
content page?

Ie; suppose I've got an area on a masterpage which is essentially a
shopping cart which is displayed on everypage (assuming it has items in
it). On an order summary page, I adjust the quantity of certain items.
How would I update the shopping cart contents (price, # of items) which
is located in the masterpage, without reloading the entire page?
 
Thanks - it worked a treat!


To meet your requirement of "not reloading the page" you should learn how to
use Atlas [1].
To reference the controls in the MasterPage from a content page we can use
public properties for the controls we want to reference of the FindControl
method.

<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/

[1] http://asp.net/



Code Monkey said:
Is it possible to update a section on a masterpage from a method on a
content page?

Ie; suppose I've got an area on a masterpage which is essentially a
shopping cart which is displayed on everypage (assuming it has items in
it). On an order summary page, I adjust the quantity of certain items.
How would I update the shopping cart contents (price, # of items) which
is located in the masterpage, without reloading the entire page?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top