本文介绍了占位符&用户控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
i有两个usercontrol,我在第一个usercontrol中有一个按钮,我的按钮在Repeater中,当我点击该按钮时,另一个usercontrol必须显示但是当我点击我的页面时是空白的不显示任何内容
我的代码如下所示:
newmessage m = newmessage();
placeholder.controls.add(m);
please帮助我
非常感谢
hi
i have two usercontrol ,i have a button in first usercontrol that my button is inside a Repeater ,when i clicked that button,another usercontrol must show but When I click my page is blank and does not display anything
My code looks like the following:
newmessage m=newmessage();
placeholder.controls.add(m);
please help me
thanks a lot
推荐答案
protected void Page_Load(object sender, EventArgs e)
{
Repeater1.DataSource = new string[] { string.Empty };
Repeater1.DataBind();
}
另一件事应该没问题。
The other thing should be ok.
这篇关于占位符&用户控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!