问题描述
大家好,
我在此页面中有一页,我注册了2个ucregistraion,uclogin之类的用户控件,默认情况下,首先uclogin用户控件显示,在uclogin用户控件中我有一个"join"按钮,当我单击uclogin用户控件中的"join"按钮时,显示ucregistration usercontrol并删除uclogin usercontrol.非常非常主要的是ucregistraion usercontrol在同一位置,我想显示uclogin usercontrol删除的位置.
请寄给我任何人.
Thanku
hi all,
I have one page in this page i registered 2 usercontrols like ucregistraion,uclogin,first by default uclogin usercontrol displays, in the uclogin usercontrol i have one "join" button is there, when i click "join" button in uclogin usercontrol i want to display ucregistration usercontrol and remove the uclogin usercontrol. very very main is at the same place ucregistraion usercontrol i want to display where uclogin usercontrol remove.
PLease send me any one.
Thanku
推荐答案
<div>
<uc1:abc id="uc1" runat="server"></uc1:abc>
<uc2:xyz id="uc2" runat="server" visible="false"></uc2:xyz>
</div>
protected void JoinButtonClicked(object sender, EventArg e)
{
uc1.visible=false;
uc2.visible=true;
}
这篇关于如何用另一个用户控件替换用户控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!