Programmatically adding usercontrols
-
Hi guys Does anyone know how to programmatically add multiple usercontrols to a panel? I've used LoadControl() method, but it only loads the usercontrol the first time. I wantt to continually add multiple usercontrols to the same panel. Can anyone help me? Thanks
-
Hi guys Does anyone know how to programmatically add multiple usercontrols to a panel? I've used LoadControl() method, but it only loads the usercontrol the first time. I wantt to continually add multiple usercontrols to the same panel. Can anyone help me? Thanks
Hi, in this case i am adding an array of LinkButtons in a Multiview control dynamically. entries[indexIntVar] = new LinkButton(); view1.Controls.Add(entries[indexIntVar]); Hope this helps!
-
Hi guys Does anyone know how to programmatically add multiple usercontrols to a panel? I've used LoadControl() method, but it only loads the usercontrol the first time. I wantt to continually add multiple usercontrols to the same panel. Can anyone help me? Thanks
You can add n number of user control Dynamically But why are you adding user controls to Panel ? There is one more simpler option you can add user controls to Repeater Use Repeater instead of Panel if you can that will make your life simpler
Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "