TAILIEUCHUNG - Wrox Beginning SharePoint 2010 Development phần 6

Chú ý Nếu bạn sử dụng Visual Studio 2010 để tạo ra một phần Web tùy chỉnh, nó sẽ tự động triển khai các Web Part Gallery. Bạn có thể sử dụng một "hướng dẫn sử dụng" lệnh để triển khai một lắp ráp một phần Web, trong đó bạn trường hợp, bạn sẽ cần phải tự thêm nó vào Thư viện ảnh Web Part. | Understanding Web Parts I 219 J NOTE If you use Visual Studio 2010 to create a custom Web part it is automatically deployed to the Web Part Gallery You can use a manual command to deploy a Web part assembly in which you case you would need to manually add it to the Web Part Gallery. The in-context ribbon experience is a great productivity improvement over the 2007 experience which was a gallery you invoked as a separate window and scrolled to find your Web part and makes it easier to interact with Web parts. When you navigate to the Web Part Gallery you are presented with two views One view enables you to see all of the Web parts in the site collection. The other view provides you with a more detailed view of the Web part and its metadata . The top-level view of the Web Part Gallery is shown in Figure 6-1 and in it you can see an enumeration of the available Web parts in SharePoint along with properties for those Web parts. FIGURE 6-1 Web Part Gallery NOTE If you click on the Web part link for example SharePoint launches and renders the Web part in a separate Web part page. 220 I CHAPTER 6 BUILDING AND DEPLOYING SHAREPOINT WEB PARTS WEB PART ARCHITECTURE The architecture of an .aspx Web page integrates a number of different zones configurations and objects that are associated with those zones. Core to the Web part architecture is the WebPartManager object which manages all of the Web parts on a page. The WebPartManager control is the central command center for the Web parts on a page. There is only one WebPartManager control instance on a SharePoint Web part page and it works only with authenticated site users. The WebPartManager also holds a reference to the collection of Web part zones that is the WebZone class which are containers for Web parts. Depending on the site or Web page template Web part zones can be positioned differently on the page. Any page using one or more Web parts must have an instance of the WebPartManager and a Web part .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.