Tell me more ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have exported the webpart using Sharepoint designer (DWP File). How can I add it to an application page?

Thanks

Manny

share|improve this question

2 Answers

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

If Want to add webpart in application page then why are u export it?

just open your site in sharepoint designer find page where u add webpart and find webpart tag it's like this

<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

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.