如何从web用户控件到aspx页面获取gridview,dropdownlist [英] how to get gridview,dropdownlist from web user control to aspx page

查看:76
本文介绍了如何从web用户控件到aspx页面获取gridview,dropdownlist的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从web用户控件到aspx页面获取gridview,dropdownlist。但是如果控件存在于Web用户控件中,则基于dropdownlist

解决方案

中的索引更改显示gridview,如果你想处理.aspx文件意味着需要处理喜欢这个





page.webusercontrolid.controlid就是这样...





page.WebUserControl1.DropDownList1.DataSource = ......



page.WebUserControl1.GridView1.DataSource = .. ....

how to get gridview,dropdownlist from web user control to aspx page. but gridview is displayed based on index change in dropdownlist

解决方案

if the controls are present in web user control, if u want to handle in .aspx files means need to handle like this


page.webusercontrolid.controlid like that ...


page.WebUserControl1.DropDownList1.DataSource=......

page.WebUserControl1.GridView1.DataSource=......


这篇关于如何从web用户控件到aspx页面获取gridview,dropdownlist的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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