- 1、本文档共29页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Master/Detail Filtering With Two DropDownLists
Introduction
In the previous tutorial we examined how to display a simple master/details report using a single DropDownList populated with the categories and a GridView showing those products that belong to the selected category. This report pattern works well when displaying records that have a one-to-many relationship and can easily be extended to work for scenarios that include multiple one-to-many relationships. For example, an order entry system would have tables that correspond to customers, orders, and order line items. A given customer may have multiple orders with each order consisting of multiple items. Such data can be presented to the user with two DropDownLists and a GridView. The first DropDownList would have a list item for each customer in the database with the second ones contents being the orders placed by the selected customer. A GridView would list the line items from the selected order.
While the Northwind database include the canonical customer/order/order details information in its Customers, Orders, and Order Details tables, these tables arent captured in our architecture. Nonetheless, we can still illustrate using two dependent DropDownLists. The first DropDownList will list the categories and the second the products belonging to the selected category. A DetailsView will then list the details of the selected product.
Step 1: Creating and Populating the Categories DropDownList
Our first goal is to add the DropDownList that lists the categories. These steps were examined in detail in the preceding tutorial, but are summarized here for completeness.
Open the MasterDetailsDetails.aspx page in the Filtering folder, add a DropDownList to the page, set its ID property to Categories, and then click the Configure Data Source link in its smart tag. From the Data Source Configuration Wizard choose to add a new data source.
Figure 1: Add a New Data Source for the DropDownList (Click to view full-size ima
您可能关注的文档
- 市场推广设计方案 大学毕业设计.doc
- 市级扶持林果基地农民专业合作社申报材料 大学毕业设计.doc
- 市政排污管网工程施工组织设计 大学毕业设计.doc
- 试论构建具有中国特色的知识型咨询企业浅谈 大学毕业设计.doc
- 市政园林道路背景树绿化工程施工组织设计 大学毕业设计.doc
- 试论空乘人员的形象塑造大学毕业设计.doc
- 试验机油箱设计(机械cad图纸) 大学毕业设计.doc
- 视频会议系统设计与实现大学毕业设计.doc
- 视窗注塑模的设计(机械cad图纸) 大学毕业设计.doc
- 市政路桥ppp项目及附属工程施工组织设计 .doc
- 第十一章 电流和电路专题特训二 实物图与电路图的互画 教学设计 2024-2025学年鲁科版物理九年级上册.docx
- 人教版七年级上册信息技术6.3加工音频素材 教学设计.docx
- 5.1自然地理环境的整体性 说课教案 (1).docx
- 4.1 夯实法治基础 教学设计-2023-2024学年统编版九年级道德与法治上册.docx
- 3.1 光的色彩 颜色 电子教案 2023-2024学年苏科版为了八年级上学期.docx
- 小学体育与健康 四年级下册健康教育 教案.docx
- 2024-2025学年初中数学九年级下册北京课改版(2024)教学设计合集.docx
- 2024-2025学年初中科学七年级下册浙教版(2024)教学设计合集.docx
- 2024-2025学年小学信息技术(信息科技)六年级下册浙摄影版(2013)教学设计合集.docx
- 2024-2025学年小学美术二年级下册人美版(常锐伦、欧京海)教学设计合集.docx
最近下载
- 江苏省扬州市扬州中学2023-2024学年高一上学期12月月考数学试题(含答案解析).docx
- 2024年国家电网招聘之财务会计类题库附参考答案(轻巧夺冠).docx
- 恶性肿瘤放疗患者营养治疗专家共识解读PPT课件【31页】.pptx VIP
- 江苏省海门市高一上学期期末考试(数学).doc
- PowerVision臻迪无人机PowerEgg用户手册.pdf
- 蓝海华腾变频器说明书.pdf
- 幼儿园小班家访记录表.pdf
- 江苏省扬州市邗江中学2019-2020学年高一上学期期中数学试题(解析版).pdf VIP
- 第一讲数字集成电路质量评价.ppt
- 辽宁省沈阳市浑南区2022-2023学年九年级上学期10月月考物理试题(含答案).pdf VIP
文档评论(0)