Connecting Tech Pros Worldwide Forums | Help | Site Map

Master Page problem

Code Monkey
Guest
 
Posts: n/a
#1: Jun 29 '06
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?


clintonG
Guest
 
Posts: n/a
#2: Jun 29 '06

re: Master Page problem


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" <dlynes2005@gmail.com> wrote in message
news:1151585670.139186.110010@p79g2000cwp.googlegr oups.com...[color=blue]
> 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?
>[/color]


Code Monkey
Guest
 
Posts: n/a
#3: Jun 29 '06

re: Master Page problem


Thanks - it worked a treat!



clintonG wrote:[color=blue]
> 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" <dlynes2005@gmail.com> wrote in message
> news:1151585670.139186.110010@p79g2000cwp.googlegr oups.com...[color=green]
> > 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?
> >[/color][/color]

Closed Thread


Similar C# / C Sharp bytes