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 33
Đang chuẩn bị liên kết để tải về tài liệu:
ASP.NET 4 Unleased - p 33
Cẩm Ly
123
10
pdf
Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Chu kỳ, ApproxError, ForecastError cho phép bạn tùy chỉnh như thế nào phân tích được thực hiện. Bạn có thể tìm thấy những bộ hoàn chỉnh các thông số cho mỗi công thức trên trang web của MSDN. | 294 CHAPTER 6 Designing Websites with Themes For example the page in Listing 6.20 enables a user to select a favorite skin for a GridView control. The GridView control displays a list of movies see Figure 6.9 . FIGURE 6.9 Applying a Skin programmatically. LISTING 6.20 ShowDynamicSkin.aspx @ Page Language C Theme DynamicSkin DOCTYPE html PUBLIC - W3C DTD XHTML 1.1 EN http www.w3.org TR xhtml11 DTD xhtml11.dtd script runat server protected void Page_PreInit object if Request skin null switch Request skin case professional grdMovies.SkinlD break case colorful grdMovies.SkinlD sender EventArgs e Professional Colorful From the Library of Wow eBook Applying Themes Dynamically 295 break script html xmlns http www.w3.org 1999 xhtml head runat server title Show Dynamic Skin title head body form id form1 runat server div asp GridView id grdMovies DataSourceID srcMovies Runat server asp SqlDataSource id srcMovies ConnectionString ConnectionStrings Movies SelectCommand SELECT Id Title Director FROM Movies Runat server hr 6 a href showdynamicskin.aspx skin professional Professional a nbsp nbsp a href showdynamicskin.aspx skin colorful Colorful a div form body html A hyperlink is used to select a particular Skin. The Skin is applied to the GridView in the Prelnit event when a particular value is assigned to the GridView control s SkinlD property. Of course I don t recommend doing this. It makes more sense to use a CSS and modify a control s CssClass property. This alternative approach is demonstrated by the page in Listing 6.21. From the Library of Wow eBook 296 CHAPTER 6 Designing Websites with Themes LISTING 6.21 ShowDynamicCSS.aspx @ Page Language C Theme DynamicSkin DOCTYPE html PUBLIC - W3C DTD XHTML 1.1 EN http www.w3.org TR xhtml11 DTD xhtml11.dtd script runat server protected void btnSubmit_Click object sender EventArgs e grdMovies.CssClass ddlCssClass.SelectedItem.Text script html xmlns http www.w3.org 1999 xhtml head id Head1 runat server title Show Dynamic CSS title .
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.