TAILIEUCHUNG - aspnet sample_part10

Chương 4: Các hình thức Web và Web Controls K Lựa chọn từ một danh mục được xác định trước các vấn đề khu vực tiềm năng. (DropDownList kiểm soát) K Chọn từ các đối tượng được xác định trước trong các loại. | Chapter 4 Web Forms and Web Controls Pick from a predefined category of potential problem areas. DropDownList control Pick from predefined subjects within the categories. DropDownList control Type a description of the problem. Multiline TextBox control Submit the request. Button control Rather than creating a new blank page and retyping all the code you can simply copy and rename it or save a copy with the new name if it s already open in your editor . The only portion of the code that will change to accommodate the HelpDesk interface is the last table in the body the one that contains the news items on . Everything else stays the same because we want to have a single look for all our pages2. Change the final column in the table to create two drop-down lists a multiline text box and a button as shown -- End HyperLink controls -- td td valign top h1 Employee HelpDesk Request h1 p Problem Category br asp DropDownList id ddlCategory CssClass dropdownmenu runat server p p Problem Subject br asp DropDownList id ddlSubject CssClass dropdownmenu runat server p p Problem Description br asp TextBox id txtDescription CssClass textbox Columns 40 Rows 4 TextMode MultiLine runat server p p asp Button id btnSubmit CssClass button Text Submit Request runat server p td Notice how we ve applied our CSS classes to the appropriate controls here. Don t worry that the DropDownList controls don t have items associated with them the categories and subjects will be predefined within database tables. Later we ll bind these database tables to their respective controls. When you re finished save your work and view it in a browser. 2We ll see better ways to do this in later chapters. rf HSk cf ersionall 700 pages 128 Summary Summary In this chapter we discussed HTML controls Web Forms and Web controls. We also explored how to link between pages and how to add style to controls. You even built your first project putting together

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.