
Download
project at here
How to create Site Collections from a Custom Web Template Programming
Open
Visual Studio 2010.
Go to
File => New => Project.
Select
Empty SharePoint Project template from the installed templates.
Enter
the Name “CreateSiteCollectionFromTemplate” and click Ok.
Right
click on the solution and click on Add a new item.
Select
the VisualWebPart template from the installed template.
Enter
the Name...