Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Sức khỏe - Y tế
Văn bản luật
Nông Lâm Ngư
Kỹ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
Giới thiệu
Đăng ký
Đăng nhập
Tìm
Danh mục
Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Y tế sức khỏe
Văn bản luật
Nông lâm ngư
Kĩ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
Thông tin
Điều khoản sử dụng
Quy định bảo mật
Quy chế hoạt động
Chính sách bản quyền
Giới thiệu
Đăng ký
Đăng nhập
0
Trang chủ
Công Nghệ Thông Tin
Tin học văn phòng
Wrox Beginning SharePoint 2010 Development phần 5
Đang chuẩn bị liên kết để tải về tài liệu:
Wrox Beginning SharePoint 2010 Development phần 5
Anh Thảo
38
50
pdf
Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Trong chương này, bạn tìm hiểu về các công cụ khác nhau mà bạn sẽ muốn có trong bộ công cụ phát triển của bạn. Bạn có thể có nhiều hơn hoặc ít hơn những gì được mô tả trong chương này, nhưng cuối cùng chương này là về cốt lõi công cụ phát triển | Programmatically Accessing Lists I 169 web.AllowUnsafeUpdates true SPList list web.Lists strSPListName SPListItem Item list.Items.Add Item Title strProductName Item Product_SKU strProductSKU Item Price strProductPrice Item.Update web.AllowUnsafeUpdates false 11. When you re finished adding the code press F5 to debug the application. When prompted by the UI enter some product information into the dialog as shown in Figure 5-5. FIGURE 5-5 Compiled WPF application using server-side object model 12. Now open your SharePoint site and navigate to the list you updated for example Products list . You will find that the application has updated the SharePoint list as shown in Figure 5-6. IS Title Product_SKU Price Bauer xxxx BR.-XXXX-90Ỉ 389.99 CCM Tacks CM-TCKS-021 3Ữ9.00 Nike Air NK-AIR-788 389.99 Bauer XXVI SHEW BR-XXVI-Ũ90 279.99 FIGURE 5-6 Updated list 170 I CHAPTER 5 PROGRAMMING AGAINST SHAREPOINT 2010 LISTS How It Works When you re developing applications that are running on the server you can leverage the server-side object model that is exposed using the Microsoft SharePoint.dll. For example in this walkthrough you built a simple WPF-based application that was running on the server assuming that you were building and deploying it on your server machine . Very simply the application took a number of string inputs from the WPF UI and used the server-side object model to add this input to a list on your SharePoint site. The five string variables were declared as follows string strSPSiteURL string strSPListName string strProductName string strProductSKU string strProductPrice You ll note that per the earlier example the code leverages the using statements to set the context for the SharePoint site and then sets the Web to allow updates creates an SPList object and SPListltem object and then proceeds to set the specific column fields with the data that was entered by the users. Finally the Update method is called to add the data to the list. using SPSite site new SPSite
TÀI LIỆU LIÊN QUAN
Beginning SharePoint 2010 Development
Wrox Beginning SharePoint 2010 Development phần 1
Wrox Beginning SharePoint 2010 Development phần 2
Wrox Beginning SharePoint 2010 Development phần 3
Wrox Beginning SharePoint 2010 Development phần 4
Wrox Beginning SharePoint 2010 Development phần 5
Wrox Beginning SharePoint 2010 Development phần 6
Wrox Beginning SharePoint 2010 Development phần 7
Wrox Beginning SharePoint 2010 Development phần 8
Wrox Beginning SharePoint 2010 Development phần 9
crossorigin="anonymous">
Đã 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.