Visual Studio 2010 is rich in SharePoint 2010 development. To work with SharePoint 2010 on your development machine, you can download and install SharePoint 2010 Foundation prior to test the SharePoint controls development in Visual Studio 2010. After you have successfully installed the SharePoint Foundation, you can fire up the Visual Studio, create a SharePoint 2010 empty project. The next step you can try is adding a Visual Web Part. There are number of other objects you can create for SharePoint 2010.
After you add the Visual Web Part, you can draw your controls on the design surface, build it and deploy to the SharePoint site. CreateChildControls is the method which gets executed while the web part is being show on the host page.
protected override void CreateChildControls()
{
Control control = Page.LoadControl(_ascxPath);
Controls.Add(control);
}
Hope, this very brief introduction to SharePoint development in Visual Studio 2010 is helpful for the fresh SharePoint developers.
After you add the Visual Web Part, you can draw your controls on the design surface, build it and deploy to the SharePoint site. CreateChildControls is the method which gets executed while the web part is being show on the host page.
protected override void CreateChildControls()
{
Control control = Page.LoadControl(_ascxPath);
Controls.Add(control);
}
Hope, this very brief introduction to SharePoint development in Visual Studio 2010 is helpful for the fresh SharePoint developers.

No comments:
Post a Comment