摘要
在B/S应用系统的开发中经常会遇到主、从表的查询显示问题,解决这个问题有很多方法,大多数方案是用两个页面实现,表显示主表的信息.然后通过链接显示从表的详细信息。通过对DataGrid控件深入研究,用嵌套的DataGird控件解决了在同一个页面中同时显示主、从表数据的问题,并在实际的项目满足了客户的需求,得到了良好的应用。
Querying and displaying data from parent-child table are often used in web application. There are many solutions to content this requirement. Most oF them are use two page to achieve this function. One page is used to display parent table data and the other for child tables. Two page communication with hodink. Through study in DataGrid Control, The paper illustrates how to use Nested DataGrid to display data of parent-child table in the same page. This method is used very well in practical project.
出处
《电脑知识与技术》
2007年第6期1364-1366,共3页
Computer Knowledge and Technology