使用下拉列表绑定多个控件 [英] Bind Multiple controls with Dropdown List

查看:120
本文介绍了使用下拉列表绑定多个控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


请帮忙,因为这是我的第一个项目,我需要您的宝贵建议

我有下表

Hi
Please help since this is my first project i need your valuable suggestions

I have the below tables

Table Name           PrimaryKey      ForeignKey

CustomerDetails       CustomerId       userid
ItemParent             Dono            CustomerId
Items                  sno             Dono




我的UI(要打印)包含3个文本框---来自CustomerDetails的值
详细信息视图-CustomerDetails中的值
网格视图---来自Items,ItemParent的值

我的困惑是,当我选择一个dono时,所有此控件应显示与该dono相关的相关信息.我该怎么做?

谢谢




My UI(To print) consist of 3 Textboxes --- value from CustomerDetails
Detail View -- value from CustomerDetails
Grid view --- Value from Items,ItemParent

My confusion is when i select a dono all this control should display related information related to that dono. How do i do this?

Thanks

推荐答案

尝试一下:

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.dropdownlist.aspx
Try this one :

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.dropdownlist.aspx


这篇关于使用下拉列表绑定多个控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆