Tạo một Web Phần Visio Sơ đồ đơn giản Visio có một số lớn "mash-up khả năng, cho phép nó dễ dàng được tích hợp vào SharePoint 2010. Để tạo ra một phần sơ đồ Visio Web đơn giản, hãy làm theo các bước sau: | Web Services I 369 string ratingonProjURL http projects Pages string ratingonPlansURL http plans Pages SocialDataService mySocialDataService new SocialDataService http _vti_bin SocialRatingDetail confWikiRating ratingonConfURL SocialRatingDetail projWikiRating ratingonProjURL SocialRatingDetail plansWikiRating ratingonPlansURL addRatingsToWebPart private void addRatingsToWebPart int confRate int projRate int plansRate int avgRating 0 string confwiki Conference Wiki string projwiki Project wiki string plansWiki Plans wiki avgRating confRate projRate plansRate 3 string avgRatingForWikis Average Rating confWiki projWiki plansWiki avgRatingForWikis 9. Amend the .webpart file to have a more intuitive title and description such as shown here properties property name Title type string Wiki Rating Web Part property property name Description type string Web Part that displays wiki rating data. property properties 370 I CHAPTER 10 DEVELOPING SERVICE-ORIENTED APPLICATIONS FOR SHAREPOINT 2010 10. Press F6 to build the project. When the project successfully builds click Build o Deploy Solution to deploy the new Visual Web part to SharePoint. 11. Navigate to your SharePoint site. Create a new Web part page and then click Add a new web part. 12. In the Custom category select your newly created Web part and click Add. When the Web part is added to the page click the