在同一asp.net页中的两个不同的用户控件 [英] two different user controls in same asp.net page

查看:101
本文介绍了在同一asp.net页中的两个不同的用户控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的应用程序链接 http://www.mediafire.com/download.php?zyncso3qi0k6pqi [ ^ ]

我在一个.aspx页中有2个不同的用户控件.

第一个用户控件是与数据库绑定的dropdownlist.第二个用户控件是gridview.

如果我选择一个公司,则该公司的下拉列表产品应显示在第二个用户控件中.

我的问题是,当我在下拉列表中选择公司时,gridview用户控件正在加载第一个并且第二个下拉列表中选中的事件正在触发..

请帮助我...

this is my application link http://www.mediafire.com/download.php?zyncso3qi0k6pqi[^]

i had 2 different user controls in one .aspx page.

first user control was dropdownlist binded with database. second user control was gridview.

if i select a company int the dropdownlist products of that company should be displayed in the second user control.

my problem was, when i am selecting the companies in the dropdownlist gridview user control is loading first and 2nd dropdownlist selected event is firing..

please help me...

推荐答案

this problem may occur due to rendering.. while rendering put your 2nd usercontrol 1st ..
eg:
UC1 & UC2 //two user controls
at the loadtime keep order :
UC2
UC1


我解决了我的问题.感谢您的帮助.

这是链接

http://reddyinfosoft.blogspot.in/2012/05/interaction- between-two-user-controls.html#more [ ^ ]

[edit]可点击的链接[/edit]
I cleared my problem. thanks for helping me.

this is the link

http://reddyinfosoft.blogspot.in/2012/05/interaction-between-two-user-controls.html#more[^]

[edit] clickable link [/edit]


这篇关于在同一asp.net页中的两个不同的用户控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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