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
Kỹ thuật lập trình
ASP.NET 4 Unleased - p 136
Đang chuẩn bị liên kết để tải về tài liệu:
ASP.NET 4 Unleased - p 136
Hồng Thu
52
10
pdf
Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Một bất lợi của các Serializer XML là nó tạo ra một đại diện phồng lên của một tài sản hơn so với Serializer nhị phân. Ví dụ, các kết quả của tuần tự các lớp Giỏ hàng với Serializer XML được chứa trong Ví dụ 28,31: | 1324 CHAPTER 28 Maintaining Application State FIGURE 28.10 Deleting inactive profiles. LISTING 28.40 ManageProfiles.aspx @ Page Language C DOCTYPE html PUBLIC - W3C DTD XHTML 1.0 Transitional EN http www.w3.org TR xhtml1 DTD xhtml1-transitional.dtd script runat server DateTime inactiveDate DateTime.Now.AddMonths -3 void Page_PreRender lblProfiles.Text ProfileManager.GetNumberOfProfiles ProfileAuthenticationOption.All .ToString lblInactiveProfiles.Text ProfileManager.GetNumberOfInactiveProfiles ProfileAuthenticationOption.All inactiveDate .ToString protected void btnDelete_Click object sender EventArgs e int results ProfileManager.DeleteInactiveProfiles From the Library of Wow eBook Using Profiles 1325 ProfileAuthenticationOption.All inactiveDate IblResults.Text String.Format 0 Profiles deleted results script html xmlns http www.w3.org 1999 xhtml head id Head1 runat server title Manage Profiles title head body form id form1 runat server div Total Profiles asp Label id lblProfiles Runat server br Inactive Profiles asp Label id lblInactiveProfiles Runat server br br asp Button id btnDelete Text Delete Inactive Profiles Runat server OnClick btnDelete_Click br asp Label id lblResults EnableViewState false Runat server 28 div form body html The page in Listing 28.40 displays the total number of profiles and the total number of inactive profiles. An inactive profile is a profile that has not been accessed for more than 3 months. The page also includes a Delete Inactive Profiles button that enables you to remove the old profiles. From the Library of Wow eBook 1326 CHAPTER 28 Maintaining Application State Configuring the Profile Provider By default profile data is stored in a Microsoft SQL Server Express database named ASPNETDB.mdf located in your application s root App_Data folder. If you want to store profile data in another database in your network you need to perform the following two tasks 1. Add the necessary database objects required by the profile object to the .
TÀI LIỆU LIÊN QUAN
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.