将文本框动态插入用户控件

问题描述:

我想知道是否可以从主.aspx页面将文本框插入用户控件?如果是这样怎么办?我是asp.net的初学者,请帮助。

I want to know in whether its possible to insert a textbox into an user control from the main .aspx page? If so how to do it? I'm a beginner in asp.net please help.

TextBox txt = new TextBox();
userControl1.Controls.Add(txt);


这样的




参见这个 [ ^ ]了解更多信息。 :)



-KR


like this ?

See this[^] for more idea. :)

-KR