本文介绍了访问usercontrol中的usercontrol的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,我有这个问题
我在另一个用户控件中有一个用户控件。现在我想检索嵌套的用户控件控件值。我应该怎么做
我的用户控件是uc1并且它嵌套了uc2用户控件。
i想要获取具有uc1用户控件的ex.aspx页面中的uc2值。
请帮助
hello frens, i have this question
i have a user control inside another user control. now i want to retrieve that nested user controls control value. what should i do
my user control is uc1 and it has uc2 user control nested.
i want to get the uc2 value in ex.aspx page which has uc1 user control.
please help
推荐答案
public class uc1 : UserControl
{
public UserControl uc2{get; set;}
//.....rest of your code here
}
public class uc2 : Usercontrol
{
//....
}
问候
Jegan
Regards
Jegan
这篇关于访问usercontrol中的usercontrol的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!