How To Create A Sharepoint Site 2010

Are you looking to build your own SharePoint site in SharePoint 2010? Follow these detailed steps to create and customize your site using Microsoft Visual Studio 2010.

To create a SharePoint site in SharePoint 2010, follow these steps:

  1. Open Microsoft Visual Studio 2010 and create a new SharePoint 2010 project.
  2. Choose the Blank template for the local SharePoint site.
  3. Name the project WingtipDevProject1 and select the Empty SharePoint Project template.
  4. Add the URL of the local test site when prompted by the SharePoint Configuration Wizard, and click Deploy as farm solution.
  5. In Solution Explorer, right-click the WingtipDevProject1 project node, click Add, and then click New Item. Create a new Web Part project item called HelloPart.
  6. Double-click the new feature node for Feature1 to display it in the Feature Designer. Change the Title of the feature to Wingtip Dev Project 1.
  7. In the HelloPart project item, there should be three source files named elements.xml, HelloPart.cs, and HelloPart.webpart. Open the HelloPart.webpart file and change the Title to The Hello Part and the Description to My Description.
  8. Open the elements.xml file and change the Value of the Group property to Wingtip Web Parts.
  9. Implement the Web Part functionality in the HelloPart.cs file by adding code to the CreateChildControls method. The code should create a Label control with the text “Hi from the Hello Part” and add it to the Web Part’s Controls collection.
  10. Build the project and deploy it to the local test site.
  11. Refresh the home page of the test site and click Edit Page to enter design mode. Add the Hello Part Web Part to the Left zone of the page.
  12. Close the browser and return to Visual Studio 2010. Open the HelloPart.cs file and add a breakpoint to the first line of code inside the CreateChildControls method.
  13. Press F5 to enter debug mode and wait for the debugger to hit the breakpoint. Step through the code line by line to test the Web Part functionality.

By following these steps, you can create and test a SharePoint site with a custom Web Part in SharePoint 2010 using Microsoft Visual Studio 2010.

Step-by-Step Instructions for Creating a SharePoint Site in SharePoint 2010

Now that you have a clear understanding of the overall process, let’s dive into the step-by-step instructions for creating your SharePoint site using SharePoint 2010 and Microsoft Visual Studio 2010.

To start, open Microsoft Visual Studio 2010 and create a new SharePoint 2010 project. Choose the Blank template for the local SharePoint site and name the project WingtipDevProject1. Select the Empty SharePoint Project template.

Next, add the URL of the local test site when prompted by the SharePoint Configuration Wizard and click “Deploy as farm solution”. In Solution Explorer, right-click the WingtipDevProject1 project node, click Add, and then click New Item to create a new Web Part project item called HelloPart.

In the HelloPart project item, there should be three source files: elements.xml, HelloPart.cs, and HelloPart.webpart. Open the HelloPart.webpart file and change the Title to “The Hello Part” and the Description to “My Description”. Open the elements.xml file and change the Value of the Group property to “Wingtip Web Parts”.

Now it’s time to implement the Web Part functionality. Open the HelloPart.cs file and add code to the CreateChildControls method. This code should create a Label control with the text “Hi from the Hello Part” and add it to the Web Part’s Controls collection.

Build the project and deploy it to the local test site. Refresh the home page of the test site and click “Edit Page” to enter design mode. Add the Hello Part Web Part to the Left zone of the page. Close the browser and return to Visual Studio 2010. Open the HelloPart.cs file and add a breakpoint to the first line of code inside the CreateChildControls method.

Press F5 to enter debug mode and wait for the debugger to hit the breakpoint. Step through the code line by line to test the Web Part functionality. By following these steps, you can create and test a SharePoint site with a custom Web Part in SharePoint 2010 using Microsoft Visual Studio 2010.

Meet the Author

Abdul Rahim has been working in Information Technology for over two decades. Learn how Abdul got his start as a Tech Blogger , and why he decided to start this Software blog. If you want to send Abdul a quick message, then visit his contact page here.