Saturday, November 21, 2009

Creating SharePoint Web Parts using VS.NET 2010 Beta 2

 

1) First Create new Visual Web Part project .

image

Next point to this project solution to SharePoint site where you want to deploy this Visual Web Part. When you click Finish this time VS.NET  validates the

SharePoint URL you are provided . In my case  this is the SharePoint site i wanted to deploy this visual web part. http://win-m2ircoq6iqa:44119/Family/

image

Now we can place Controls from Toolbox or even we can type HTML Files in  Source code Window.

image

Once you Build your web part Right click on the solution and Click the Deploy Solution. Now VS.NET Compiles it and Package it and deploy as well.

image   

Now Click Edit ICON and click web part Ribbon and add our custom Visual web part to our site.

image 

image

Click Insert –> click web part->select Custom Folder->Select our Visual Web parts  and then Click it will add our Visual Web parts to our Site.

image

 

Nandri(Thanks)

SreenivasaRagavan.

No comments: