I'm kind of stuck adding a web part to the Person.aspx page....I have a custom web part which I have uploaded but I'm not sure how to add it.

On the masterpage (in SharePoint Designer) I went to Insert->Web Part-> and insterted my web part.

Now in the Person.aspx I copied and pasted this code under one of the web part zones, right now its sitting just as a duplicate of the AskMeAboutWebPart:

<SPSWC:AskMeAboutWebPart runat="server" __MarkupType="xmlmarkup" WebPart="true" __WebPartId="{EAC6834A-8E73-4D1B-B7BE-193CBDB09F30}" >
<WebPart xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/WebPart/v2">
  <Title>My Custom Web Part</Title>
  <Description>The web part that shows custom things.</Description>
  <Height />
  <Width />
  <DetailLink />
  <HelpLink />
  <PartImageSmall />
  <MissingAssembly>Cannot import this Web Part.</MissingAssembly>
  <PartImageLarge />
  <IsIncludedFilter />

Now what do I need to change in this section of code to add my web part? Basically I think I need to change the , the name, and the WebPartId but I'm not sure where to find these things, well other than the name. Where can I find the WebPartId and ??? Would this work for what I'm trying to accomplish?

Thanks you for any assistance

  • Why dont you add it programmatically Jul 27, 2012 at 9:25

1 Answer 1


Why dont you add it programmatically, then save master page as a template never done it myself but worth a go.

for adding it to the page programmatically all you need is webpart's dll and here's the tutorial for it


or try SharePoint Designer

enter link description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.