Best Practice for Visual Web Parts

Leave a Comment
Hi All,

In a following post we will see,Some Best Practices while developing Visual Webparts in SharePoint Applications.

So, After Creation of your Each Webpart in SharePoint Project , It is always better to follow the below steps.

Open  Elements.xml file:

Change the Webpart Property Group to User defined group, by default it will be as "Custom".
So It is easy to find.

 <Property Name="Group" Value="Custom" />  To
 <Property Name="Group" Value="SPKitchen_Webparts" />

Open .Webpart file:

Description of the Webpart:
<property name="Description" type="string">Add Your Webpart Description here</property>

Setting the Chrome Type: ( You can do this based on your requirement)
<property name="ChromeType" type="chrometype">None</property>



Thanks,

Related Post

0 comments:

Post a Comment