Click here to Skip to main content
16,015,531 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted

1 solution

You should use this code
C#
protected void Page_Load(object sender, EventArgs e)
{
     Repeater1.DataSource = new string[] { string.Empty };
     Repeater1.DataBind();
}


The other thing should be ok.
 
Share this answer
 

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