Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > MasterPage - Content Problems

Reply
Thread Tools

MasterPage - Content Problems

 
 
TCORDON
Guest
Posts: n/a
 
      11-11-2005
I have a master page that has a public property IdCountry. This property is
changed by a user control on the master page using a "Bubbled" event so the
event is handled on the master page for other reasens becaus it has to
update other content on the master page then the country is chaged, so far,
so good. The problem starts when the content section in a page that uses
this master page tries to read that property, because it reads it on the
Page_Load event of the content page, and at this point this property has not
received its new value on the master page.

HELP!


 
Reply With Quote
 
 
 
 
Brock Allen
Guest
Posts: n/a
 
      11-12-2005
Have the master fire an event when the value has changed. In Page_Init the
context page subscribes to the Master's event. Once the value changes from
the Page's button click (or whatever) and it's bubbled, then the master fires
it's own event.

-Brock
DevelopMentor
http://staff.develop.com/ballen

> I have a master page that has a public property IdCountry. This
> property is changed by a user control on the master page using a
> "Bubbled" event so the event is handled on the master page for other
> reasens becaus it has to update other content on the master page then
> the country is chaged, so far, so good. The problem starts when the
> content section in a page that uses this master page tries to read
> that property, because it reads it on the Page_Load event of the
> content page, and at this point this property has not received its new
> value on the master page.
>
> HELP!
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Masterpage change its masterpage mr t ASP .Net 0 08-29-2007 10:11 PM
MasterPages - take plain form, add MasterPage. MasterPage does NOT appear when run Randy Smith ASP .Net 9 04-14-2007 09:06 AM
Masterpage Content Controls Throwing Off Content Barkster ASP .Net 5 10-30-2006 06:55 PM
MasterPage inheriting a MasterPage... is it possible? ThunderMusic ASP .Net 2 09-27-2006 07:57 PM
MasterPage -> Page -> MasterPage Code Access =?Utf-8?B?QWxleCBNYWdoZW4=?= ASP .Net 3 04-14-2006 12:34 PM



Advertisments