Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I had a SharePoint site where I created a page (not a webpart page). Can I add webpart zone on this page?

share|improve this question
    
What you mean by Page? Is is aspx or html and how you add it? –  Amit Kumawat Dec 27 '11 at 11:27
add comment

4 Answers

Sure you can. Just open the page in SharePoint Designer and add web part zone on it. Designer will automatically add the web part manager tag on the page too.

share|improve this answer
    
I tried to add it from designer but web part zone doesn't get displayed on the page. –  ARD Dec 27 '11 at 9:44
1  
It should show up when page is in edit mode. –  justforkix09 Dec 27 '11 at 10:31
add comment

U just add your webpart in sharepoint site. Then open your site in sharepoint designer.Find your webpart zone you added like so

  <WebPartPages:SPUserCodeWebPart runat="server" Description="My WebPart" Title="ContactUsWebpart" 
          AssemblyFullName="XTILTON.WEB, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f58f965830ac0890" 
          SolutionId="a10addc4-93e8-4b4d-9bd3-41bd166e30de" 
          ID="g_c659e549_13c5_4c1c_8db9_c80e6d00fb88" ChromeType="None" TypeFullName="XTILTON.WEB.ContactUsWebpart.ContactUsWebpart" ></WebPartPages:SPUserCodeWebPart>

after that copy that webpartzone in your .aspx page. that's it.

share|improve this answer
    
actually i want to create 3 webpart zone on this page.is it possible? –  ARD Dec 27 '11 at 9:29
    
Hi ARd,I never try that. But do it As i told U for single webpart –  Vishal_Sharepoint Dec 27 '11 at 9:55
add comment

Please make sure that all mandatory ContentPlaceHolder from SharePoint master-page is linked to your custom page.

Maybe you should start design/create your custom page from native SharePoint web-part page, not start from scratch, to make sure all SharePoint functionality works well.

share|improve this answer
add comment

Register your webpart at the top of the page using sample code below

<%@ Register tagprefix="VotingButton" 
             namespace="xx.org.SharePoint.WebParts.VotingButton"  
             assembly="xxx.org.SharePoint, Version=1.0.0.0, Culture=neutral,PublicKeyToken=ff75f32512e6d74c" %>

Next, add the web part to the web part zone area of page as below

<VotingButton:VotingButton runat="server" 
                           Description="VotingButton" 
                           Title="VotingButton" 
                           __MarkupType="vsattributemarkup" 
                           __WebPartId="{58eb6642-70ed-450e-af72-e6062d07da2f}" 
                           WebPart="true" 
                           __designer:IsClosed="false" 
                           partorder="2" 
                           id="g_58eb6642_70ed_450e_af72_e6062d07da2f">
</VotingButton:VotingButton>
share|improve this answer
    
-1 The question is asking how to add a web part zone, rather than a web part. –  RJ Cuthbertson Oct 1 '12 at 2:45
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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