TAILIEUCHUNG - Make a Generic Search Form in an ASP.NET

8,8 Thực hiện một Generic Mẫu tìm kiếm trong một Web Application Bài viết này sẽ chỉ cho bạn làm thế nào để thêm một Web Form tìm kiếm độc đáo để ứng dụng Web của bạn mà có thể được thiết lập bằng cách sử dụng các biến session và sử dụng cho các bảng khác nhau. | Make a Generic Search Form in an Web Application This tutorial will show you how to add a unique search Web Form to your Web application that can be set up using session variables and used for various tables. Creating search forms for Web applications is pretty common. You would like to be able to use the same Web Form for different tables in the same application. This How-To will demonstrate using the same Web Form for searching various tables taking advantage of the Session object. Technique This How-To will use the Session object with a Web Form something that has been done throughout the book. You will see a good example of using the Session object to pass values-in this case the record source the key search field and the display search field-to the search form. Finally the return value will be passed back to the calling Web Form using the Session object. One new control that is used in this How-To is the Panel control. It will be used to group the controls on the search Web Form. The Panel control will be used simply by throwing controls into it and letting it control the layout. You will see the paging used with the DataGrid control as well. Steps Open and run the -Chapter 8 solution. From the main Web Form click on the hyperlink with the caption How-To Make a Generic Search Form Using a Web Form. This page is a simple one that contains text boxes for the Customer table in Northwind see Figure . Figure . This Customers page is a common one used to demonstrate calling the search form. Click on the Search button to open the search page and then click on the button labeled B. You will see the DataGrid object displayed in the bottom of the form filled with the CompanyID and CompanyName fields of the Customer table which begin with B see Figure . Figure . This form can be used for searching within any of the tables in your databases. Click the Select button for one of the customers who is displayed in the grid and then .

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.