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

please help me

thanks a lot

1 solution

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

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