12.07.2015 Views

MỤC LỤC - lib

MỤC LỤC - lib

MỤC LỤC - lib

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Bài Giảng Môn Lập Trình Website ASP.Net Horizontal: Hiển thị dữ liệu theo chiều ngangRepeatDirection = Horizontal Vertical (mặc định): Hiển thị dữ liệu theo chiều đứngRepeatDirection = Vertical RepeatColumns: Qui định số cột hiển thị của DataListL'Enquête CorseĐặt muaUnspeakableĐặt muaBottle RocketĐặt muaRipperĐặt muaEnduring LoveĐặt muaThe Good ThiefĐặt muaRepeatColumns = 3Thiết kế hình thức hiển thị cho DataList cũng tương tự như thiết kế cho cột Template ColumncủaDataGrid.Chọn Edit Template | ItemTemplate từ thực đơn ngữ cảnh để thực hiện thiết kế hình thức hiểnthịcho DataList.Chọn chức năng thiết kế cho DataListTrong quá trình thực hành, để công việc thiết kế được dễ dàng, các bạn thực hiện thiết kế ởbên ngoài điều khiển DataList. Sử dụng Table (thực đơn Insert Table) để định vị trí hiểnthị của các điều khiển.Sau khi hoàn tất công việc thiết kế, chúng ta kéo kết quả đã thiết kế vào vị trí cần hiển thị trongDataList.Ví dụ: Hiển thị thông tin sách với DataListThiết kế thông tin sách với DataListNhư cột Template Column của DataGrid, xử lý hiển thị dữ liệu cho DataList được viết trong sựkiệnItemDataBound. Xử lý nhấn của các Button đặt trong DataList được viết trong sự kiệnItemCommand.Private Sub Page_Load(…, e …) Handles MyBase.LoadIf Not IsPostBack Thenwww.Beenvn.comBiên sọan: Dương Thành Phết Trang 127

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!