Saturday, March 23, 2013

Create visual webpart in SharePoint 2013




In this post we will discuss how to create a visual webpart in SharePoint 2013 using Visual Studio 2012. Also you can check reindex feature in list and document library in SharePoint 2013, What's new in developer dashboard in SharePoint 2013 and New webparts in SharePoint 2013.

In SharePoint 2013, both web user control and the webpart class are merged to one template file, not like SharePoint 2010.

To create visual webpart follow below steps:

Step-1:
Open Visual Studio 2012, From the left side select Office/SharePoint and then from the right hand side select SharePoint 2013 Visual Web Part.

Step-2:
In SharePoint 2013 you can deploy visual webpart as a sandboxed solution apart from farm solution. So in the Next screen select Deploy as a farm solution and click on Ok. Also you can give the site URL for debugging.

Step-3:
Then write the code in the code behind file as in SharePoint 2010.

Step-4:
After finish coding you can debug or deploy the webpart.


0 comments:

Post a Comment

Twitter Delicious Facebook Digg Favorites More