MasterPage - Content Problems

Discussion in 'ASP .Net' started by TCORDON, Nov 11, 2005.

  1. TCORDON

    TCORDON Guest

    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!
    TCORDON, Nov 11, 2005
    #1
    1. Advertising

  2. TCORDON

    Brock Allen Guest

    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!
    >
    Brock Allen, Nov 12, 2005
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?QWxleCBNYWdoZW4=?=

    MasterPage -> Page -> MasterPage Code Access

    =?Utf-8?B?QWxleCBNYWdoZW4=?=, Apr 10, 2006, in forum: ASP .Net
    Replies:
    3
    Views:
    7,886
    Steven Cheng[MSFT]
    Apr 14, 2006
  2. ThunderMusic
    Replies:
    2
    Views:
    445
    Gregory Gadow
    Sep 27, 2006
  3. Barkster
    Replies:
    5
    Views:
    418
    Barkster
    Oct 30, 2006
  4. Randy Smith
    Replies:
    9
    Views:
    422
    Mark Rae
    Apr 14, 2007
  5. mr t
    Replies:
    0
    Views:
    400
Loading...

Share This Page