Learning SharePoint   Enhance Your SharePoint Knowledge

Subscribe to Learning SharePoint Subscribe
Twitter Learning SharePointFollow Us
in Learning SharePoint
Check Out Our New SharePoint 2013 series!

Deploy Custom aspx in Sharepoint 2010

06/20/2011  
Category: SharePoint 2010, SharePoint Programming


Steps to add custom aspx page in _layouts folder in SharePoint 2010 -

1. Open the Visual studio and create an empty project “DeployAspxToLayouts”.

2. Next, select “Deploy as Farm solution”.






3. Next, right click on the Project and add navigate to “Add -> SharePoint “Layouts” Mapped Folder”. See the screen below

4. Once you add that, you will have a Layouts folder structure in your project. Next we will add our custom aspx page(existing or new) to the Layouts folder that got created in our project. For this example i am creating a new aspx file and adding it to my custom folder i.e. “DeployAspxToLayouts” which i created under my Layouts folder.

5. So to add a new aspx page, Right click on your custom folder “DeployAspxToLayouts” and click on “Add -> New Item”. Next, In Add new item menu under “General” tab select “Text file” and rename it. See the Screen below

6. Now your Project should look something like below.

Also, in the above screen verify the “Deployment Path” (from “MyCustomPage.aspx” -> Properties) in the Properties window.

7. Next, In solution explorer right click the Project and Build & Deploy.

8. Once it is deployed successfully, navigate to your 14 hive folder and verify that you have a new folder “DeployAspxToLayouts” created with our custom page MyCustomPage.aspx in it.

Next lets look at how to deploy Custom css files to STYLES of 14 hive
Add custom css file to styles folder in _layouts Sharepoint 2010

Subscribe to Learning SharePoint Subscribe
Twitter Learning SharePointFollow Us
in Learning SharePoint
Advertisement

Random Posts

14 hive and other SharePoint 2010 directories
14 hive and other»

In this post I will list out some important directories or folders used with SharePoint 2010 server. Lets Start with»

Impersonation in Sharepoint 2010
Impersonation in Sharepoint 2010

Impersonation in SharePoint 2010 is useful in many scenarios such as programmatically a new web application or site collection to»

Deploy Custom Css in Sharepoint 2010
Deploy Custom Css in»

Lets look at an example for how to add or deploy a custom css file in SharePoint 2010′s _layouts/1033/Styles folder.»

Recent Forum Posts

Linq to Sharepoint

by RS on May 18, 2012

comments on the code

by spbsmile on May 18, 2012

connection(add) EditControlBlock and my program

by spbsmile on May 18, 2012

Custom master pages used in multiple SharePoint 2010 sites

by ubersteve on May 18, 2012

upload file and click on button but cant upload file into list by using below code

by santhoshreddy on May 18, 2012