SIGN UP MEMBER LOGIN:    
ARTICLE

Creating Web parts for SharePoint 2010 using Visual Studio 2010

Posted by Destin joy Articles | SharePoint October 04, 2010
In this article I demonstrate how to create a simple web part for SharePoint 2010 using Visual studio 2010.
Reader Level:

In this article I demonstrate how to create a simple web part for SharePoint 2010 using
Visual studio 2010.

  1. Open Visual Studio 2010 -> File-> New Project
  2.  
  3. You will get a screen as shown below
     
  4. From the below screen select Visual Web Part from SharePoint category
     
  5. Give proper name for your web part

    image1.gif
     
  6. Click OK
     
  7. Next you have to give the URL of the site where you want to debug or deploy your webpart

    image2.gif
     
  8. Click Finish
     
  9. You will get the below Screen
     
  10. Just click on the Design Mode
     
  11. You will get the Design mode similar to normal ASP.net application
     
  12. You can Drag and Drop any control in to your page I just put a SharePoint Calendar control

    image3.gif
     
  13. You done with the web part .Now we can deploy it and test it
     
  14. Just right Click on the solution and click Deploy

    image4.gif
     
  15. Now go to the site where you deployed.
     
  16. Just open the page in Edit Mode
     
  17. Then click on Add web part
     
  18. Just click on Custom, you can see your web part Add the webpart

    image5.gif
     
  19. You have deployed your web part and tested the same
     
  20. Now next part, how to make it as a Package very easy just right click on the solution
     
  21. It will make a web part package in the folder where we created this web part

    image6.gif
     
  22. It's very simple to work with Visual studio 2010 to develop a web part for SharePoint 2010. 

Login to add your contents and source code to this article
share this article :
post comment
 

from the sharepoint viewpoint, im just thinking is it possible to install via vmware and access thru your local desktop?.. just for development purposes. 

Posted by Gymson Viente Nov 16, 2010
Team Foundation Server Hosting
Become a Sponsor
PREMIUM SPONSORS
  • Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
    Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
Nevron Gauge for SharePoint
Become a Sponsor