如何引用位于用户控件中的文本框? [英] How do you refer to a textbox that is located in a User Control?
本文介绍了如何引用位于用户控件中的文本框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在mymainpage.aspx中引用位于mycontrol.ascx中的MyTextBox.Text?
? (即,mycontrol.ascx是位于
mymainpage.aspx上的用户控件)。
谢谢!
Mike
How can I refer to MyTextBox.Text which is located in mycontrol.ascx from
within mymainpage.aspx? (i.e, mycontrol.ascx is a User Control located on
mymainpage.aspx).
Thanks!
Mike
推荐答案
将其设为公共财产,您可以通过使用此属性从容器页面中引用它。
。希望它有帮助,谢谢!
" Mike Hnatt" <做** @ gladstone-inc.com> D'è?óê?t
新闻:vp ************ @ corp.supernews.com ...
Make it a public property and you can refer to it from within container page
by using this property.Hope it helps,thanks!
"Mike Hnatt" <do**@gladstone-inc.com> D′è?óê?t
news:vp************@corp.supernews.com...
我怎么能在mymainpage.aspx中引用位于mycontrol.ascx中的MyTextBox.Text? (即mycontrol.ascx是位于
mymainpage.aspx上的用户控件)。
谢谢!
Mike
How can I refer to MyTextBox.Text which is located in mycontrol.ascx from
within mymainpage.aspx? (i.e, mycontrol.ascx is a User Control located on
mymainpage.aspx).
Thanks!
Mike
使它成为一个公共财产,你可以从容器页面中引用它
使用这个属性。希望它有所帮助,谢谢!
" Mike Hnatt" <做** @ gladstone-inc.com> D'è?óê?t
新闻:vp ************ @ corp.supernews.com ...
Make it a public property and you can refer to it from within container page
by using this property.Hope it helps,thanks!
"Mike Hnatt" <do**@gladstone-inc.com> D′è?óê?t
news:vp************@corp.supernews.com...
我怎么能在mymainpage.aspx中引用位于mycontrol.ascx中的MyTextBox.Text? (即mycontrol.ascx是位于
mymainpage.aspx上的用户控件)。
谢谢!
Mike
How can I refer to MyTextBox.Text which is located in mycontrol.ascx from
within mymainpage.aspx? (i.e, mycontrol.ascx is a User Control located on
mymainpage.aspx).
Thanks!
Mike
感谢Webdiyer,
但是,为了做到这一点,有人能给我一些关于我需要做什么的提示吗?
Mike
" Webdiyer" < YH **** @ 21cn.com>在消息中写道
新闻:uw ************** @ TK2MSFTNGP10.phx.gbl ...
Thanks Webdiyer,
But can anyone give me a hint as to what I need to do in order to do this?
Mike
"Webdiyer" <yh****@21cn.com> wrote in message
news:uw**************@TK2MSFTNGP10.phx.gbl...
将其设为公共财产并且您可以使用此属性从容器
页面中引用它。希望它有所帮助,谢谢!
Mike Hnatt <做** @ gladstone-inc.com> D'è?óê?t
新闻:vp ************ @ corp.supernews.com ...
Make it a public property and you can refer to it from within container page by using this property.Hope it helps,thanks!
"Mike Hnatt" <do**@gladstone-inc.com> D′è?óê?t
news:vp************@corp.supernews.com...
我如何引用MyTextBox。位于mymaintrol.aspx中mycontrol.ascx
的文本? (即,mycontrol.ascx是mymainpage.aspx上位于
的用户控件)。
谢谢!
Mike
How can I refer to MyTextBox.Text which is located in mycontrol.ascx from within mymainpage.aspx? (i.e, mycontrol.ascx is a User Control located on mymainpage.aspx).
Thanks!
Mike
这篇关于如何引用位于用户控件中的文本框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文