2012년 11월 12일 월요일

[SharePoint 2010] Deploy Custom aspx Page With Sandbox solutions


Hello Readers.
In this blog post I will write a simple way deploying a Custom aspx page using Sandbox solutions. So to begin with I will be using “CKS Development Tools”which is a collection of Visual Studio templates, Server Explorer extensions and tools providing accelerated SharePoint 2010 development. We will use “Basic Page” template provided by this extension to create our Custom page which will inherit the look and feel of your site just like any Application Page. Let me write the detailed Steps.
1. Open Visual Studio and Create an Empty Project.

2. Deploy the project as Sandbox Solution.

3. Next Right click and Add a New Module in your Project.

4. Delete the Sample.txt and Add a New Item in your Module. Select “Basic Site Page (CKSDev)”.


5. This is how your new page should look like.

5. Next we will edit the “Elements.xml” file to specify the location in our Site to where the page will be deployed. I am using Style Library for this example. You cannot deploy in Layouts in Sandbox solutions.
6.  Now Deploy the Solution and verify if  the page gets deployed in your site’s Style Library. Make sure that  Module that your created is added to the feature. See below.

7.  Deployed Page.

댓글 없음: