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 have exported a webpart to a .DWP file using Sharepoint designer. How can I add it to an application page?

share|improve this question
add comment

2 Answers 2

If you want to add a webpart to an application page then why are you exporting it?

just open your site in sharepoint designer find page where you want to add the webpart and add it to the appropriate web part zone. For example:

<WebPartPages:WebPartZone runat="server" Title="loc:Header" ID="Header" FrameType="TitleBarOnly"><ZoneTemplate>
 <WebPartPages:SPUserCodeWebPart runat="server" Description="My WebPart" Title="Search" AssemblyFullName="AfterLife, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1433d5cf0f35b78b" SolutionId="aeb81b06-2da1-4fca-b6ac-bee39a70140f" ID="g_9f2e2a68_5d9d_459f_8633_0d63fb4058f7" TypeFullName="AfterLife.WebPart1.WebPart1" __MarkupType="vsattributemarkup" __WebPartId="{9F2E2A68-5D9D-459F-8633-0D63FB4058F7}" WebPart="true" __designer:IsClosed="false" ChromeType="None" partorder="2"></WebPartPages:SPUserCodeWebPart>
</ZoneTemplate></WebPartPages:WebPartZone>

copy this and paste in your application page that's it.

share|improve this answer
    
Its an application page sitting in _layouts folder. I am not sure I can access that page from the designer. –  user10323 Aug 30 '12 at 13:23
    
you have to access your webpart through designer not application page and add XSLT in application page –  Vishal_Sharepoint Aug 31 '12 at 13:29
add comment

Check this out however I agree with the author of this article, I don't see when this would make sense. If it is a custom webpart you can add it to a site page via feature. If there is custom functionality you need to add to the page as well without using a webpart you can create a user control or visual webpart :)

Best of luck. Hope that works out for you.

share|improve this answer
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.