Example for updating list in Sharepoint 2010

来源:互联网 发布:淘宝开店取什么名字好 编辑:程序博客网 时间:2024/06/05 10:32

1. Mark sure you have sharepoint 2010 and visual studio 2010. Here, i installed sharepoint 2010 and vs2010 RC on my windows7 x64.

 

2. Create Products list in SP. the list contain 3 columns (Item, Nation, Price)

Item               Nation            Price

IPhone           US                   100

IPad               US                   800

E71                China               500

Moto              China               600

 

3. Add the list to a new page. it should be added in a webpart.

 

4. Create an empty sharepoint solution then add a webpart feature in it.

 

5. See the code

 

6. deploy and add the webpart to your page. then run it.