MSDN > 論壇首頁 > SharePoint - Development and Programming > Programmatically add web part to profile page
發問發問
 

已答覆Programmatically add web part to profile page

  • 2009年7月3日 下午 06:24RK Naik 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    Hi

    I am trying to add web part to my profile page programmatically, but I am not able to find any solution. I successfully added web part to default.aspx page using feature stapling but I am unsure how to perform the same for my profile page.

    Can anyone please help.

    Regards,
    RK
    Radhakrishna

解答

  • 2009年7月4日 下午 04:21Guru Karnik 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     已答覆
    The Profile page is a ghosted page (person.aspx) which can be found in the my site definition folder SPSPERS. You can try adding the web part to this page using the master page of the my site. You can open the root site of my site web application and change the associated master page for person.aspx.

    Regards
    Prasad
  • 2009年7月7日 上午 02:34RK Naik 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     已答覆
    Hi Guru,

    Thanks for the reply, I was able add the web part by changing the master page.

    Regards,
    RK

    Radhakrishna

所有回覆

  • 2009年7月4日 下午 04:21Guru Karnik 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     已答覆
    The Profile page is a ghosted page (person.aspx) which can be found in the my site definition folder SPSPERS. You can try adding the web part to this page using the master page of the my site. You can open the root site of my site web application and change the associated master page for person.aspx.

    Regards
    Prasad
  • 2009年7月7日 上午 02:34RK Naik 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     已答覆
    Hi Guru,

    Thanks for the reply, I was able add the web part by changing the master page.

    Regards,
    RK

    Radhakrishna