Problem with loading user control multiple times
hi,
I was having a problem with displaying of a user control more than once on a webform.The following is the code that I have written in
Page_Load event
Control[] rc = new Control[2];
for(i = 0; i < 2; i++)
{
rc[i]=(rulecontrol)Page.LoadControl("rulecontrol.ascx") ;
PlaceHolder1.Controls.Add(rc[i]);
}
Instead of displaying the user control 2 times it is displayed only
once.Can someone help me out with this?
Regards,
neha
|