Web Parts in a Master Page

Discussion in 'ASP .Net' started by stefan, Sep 30, 2005.

  1. stefan

    stefan Guest

    Hi Everyone,

    I have been playing around with Web Parts recently in ASP.NET 2.0 and I
    ran into a problem when using them on a Master Page. The problem is
    that each page remembers the Web Part settings individually. So if I
    add a Web Part to page foo.aspx it will not show up on bar.aspx even
    though the Web Part is on the Master Page that both pages use. I
    realize that this might be desired functionality for some, but does
    anyone know of an option that would turn off this behaviour?

    Thanks in advance.
    Stefan
     
    stefan, Sep 30, 2005
    #1
    1. Advertising

  2. stefan

    Brock Allen Guest

    Yes, that's because the wep parts info is stored per-page in the DB. IOW,
    the web part doesn't know that it's on a master page.

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

    > Hi Everyone,
    >
    > I have been playing around with Web Parts recently in ASP.NET 2.0 and
    > I ran into a problem when using them on a Master Page. The problem is
    > that each page remembers the Web Part settings individually. So if I
    > add a Web Part to page foo.aspx it will not show up on bar.aspx even
    > though the Web Part is on the Master Page that both pages use. I
    > realize that this might be desired functionality for some, but does
    > anyone know of an option that would turn off this behaviour?
    >
    > Thanks in advance.
    > Stefan
     
    Brock Allen, Sep 30, 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. Doug McCann
    Replies:
    1
    Views:
    1,037
    William Brogden
    Aug 5, 2004
  2. Replies:
    3
    Views:
    603
    Keith Thompson
    Mar 31, 2007
  3. Replies:
    1
    Views:
    954
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Apr 12, 2007
  4. kizk
    Replies:
    0
    Views:
    601
Loading...

Share This Page