For users who have just touched SharePoint, the walkthrough of an instance is far more interesting than an understanding of the abstraction concept, and a walkthrough of an instance to understand the principles of SharePoint, the development pattern is the most effective way to learn.
This section learns the goal: to create a visual Web part
- Create a Visual Web Part project with vs2010/vs2012
- Click "OK" to enter the URL of the site according to the wizard, the deployment level is "deploy to the farm solution"
- VS will create a file named "VisualWebPart1"
- Open Visualwebpart1.webpart file, modify basic information for WebPart (title,description)
<properties> <property name= "Title" type= "string" >SPLinqDemoTitle</property> <property name= " Description "type=" string ">splinqdemopart description</property></properties>
- Deploy Web Part, click Solution Right---deploy
Now that a Web Part has been created, we will refine the Web Part in subsequent chapters and use it in practice.
SharePoint QuickStart (1) WebPart