TAILIEUCHUNG - Use Bound Controls with Web Forms

Sử dụng Bound Controls với Web Forms Tôi muốn tạo một Form Web cho phép người dùng của tôi để xem dữ liệu giống như Windows Forms của tôi và có thể sử dụng dữ liệu ràng buộc các điều khiển trên nó. Làm thế nào để sử dụng dữ liệu ràng buộc điều khiển trên một Form Web? | Use Bound Controls with Web Forms I want to create a Web Form that allows my users to view data much like my Windows Forms and be able to use data bound controls on it. How do I use data bound controls on a Web Form Technique The data objects that you used in Chapter 1 Developing Windows Forms Using Bound Controls including OleDbDataAdapter datasets and so on will be used with Web Forms as they would with Windows Forms. The main difference between Windows Forms and Web Forms in this case is the extra steps needed to handle round trips to the server from the client machines. For discussion on OleDBDataAdapters and datasets see Chapter 1. The IsPostBack Property One property that you will be using when you re developing Web forms is the IsPostBack property which is used in the Load event of the Web Form. That s right-Web Forms now have an event model much like Windows Forms. You can now work with the Web Form properties and Web server control properties from the Web page s class module. The IsPostBack property is set to True if the load event is fired on a round trip from the server. Therefore the first time a Web Form is loaded IsPostBack is False. Web Server Controls Versus HTML Controls Within Web Forms you now have the ability to use either your classic HTML controls which are available for compatibility purposes or the new Web server controls which because they run on the server have the following advantages You can access Web server control properties and methods from the Web Forms class module but not with HTML controls. Because Web server controls are rendered from the server side on the client side they come through as pure HTML and they are compatible with more browsers and earlier versions. Web server controls generally have more features than their HTML counterparts and in some cases they can be bound to data. Note You can change some of the HTML controls to Web server controls by placing the control on the Web Form right-clicking on the .

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.