Đang chuẩn bị liên kết để tải về tài liệu:
ODP .NET Developer's Guide oracle database 10g development with visual studio 2005 phần 8

Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ

Báo cáo Phát triển Web Sử dụng ASP.NET Chúng tôi có một số phương pháp để thiết kế và xây dựng báo cáo sử dụng ASP.NET. trong hầu hết các kịch bản, dữ liệu điều khiển web (như GridView, Repeater, DataList, vv) hơn đủ. Tuy nhiên, có tồn tại các phương pháp khác mạnh mẽ, được dành riêng chỉ dành cho báo cáo. Một trong số này là báo cáo địa phương hoặc nhúng NET. | Application Development Using ODP.NET 10. Using the properties of the GridView provide DEPTNO as a value for the DataKeyNames property as shown below Data Expressions DataKeyNames DEPTNO 1 DataMember 11. Drag a FormView control from the toolbox and drop it on to the form. Using its smart tag configure its data source as dsrcDept. At this point your form should look like the following f EPTNO 0 DNAME abđĩ LOG abc Edit Delete New qlDataSource - dsrcDept DEPTNO DNAME LOC Edit Delete 0 abc abc Edit Delete Ũ.1 abc abc Edit Delete Ũ.2 abc abc Edit Delete 0.3 abc abc Edit Delete 0.4 abc abc 12. Again open up the smart tag of the FormView control and click on Edit Templates. 216 Chapter 8 13. Select InsertItemTemplate as display mode 14. Within the template select Cancel and press Delete to remove from the template. 15. Using the smart tag again click on End Template Editing as shown below. 16. Using the properties of the FormView control change the DefaultMode to Insert as shown below 217 Application Development Using ODP.NET 17. You can execute the form by pressing F5 and play with all the Insert Edit and Delete options as shown in the following figure DEPTNO DNAME 1 LOC T Insert DEPTNO DNAME LOC Edit Delete 10 ACCOUNTING NEW YORK Update Cancel 20 research DALLAS Edit Delete 30 SALES . CHICAGO Edit Delete 40 OPERATIONS BOSTON Working with Web Controls Manually In all of the previous examples we didn t write one line of code All the operations were achieved by simply configuring the data sources and controls together with mapping between them. But not every scenario would be solved using smart data binding. Let us now try to develop a new form with drop-down list and GridView controls and develop code to bind those controls. Add a new form to your project set it as the start page and drag and drop a dropdown list control ddlDept and a GridView control gvEmp . Just for the sake of information drag and drop a Label to provide the text Select Department. Make sure that the .