Click here to Skip to main content
15,898,373 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted
Comments
Mohd. Mukhtar 22-Nov-12 6:13am    
what have you tried?

1 solution

Hi Ramakrishna,

Try something like below code.
C#
<div>
<uc1:abc id="uc1"  runat="server"></uc1:abc>
<uc2:xyz id="uc2"  runat="server" visible="false"></uc2:xyz>
</div>

C#
protected void JoinButtonClicked(object sender, EventArg e)
{
  uc1.visible=false;
  uc2.visible=true;
}
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900