G Guest Aug 18, 2005 #1 I am not able to load and attach a web user control to a placeholder dynamically in 2.0 beta. Do I miss something? Thanks
I am not able to load and attach a web user control to a placeholder dynamically in 2.0 beta. Do I miss something? Thanks
F fh Aug 18, 2005 #2 Atul said: I am not able to load and attach a web user control to a placeholder dynamically in 2.0 beta. Do I miss something? Thanks Click to expand... toload your UC instead of myUc = new myUc(); placehloader.control.add(myUc); do myUC = LoadControl("pathToUserWebControl"); placehloader.control.add(myUc);
Atul said: I am not able to load and attach a web user control to a placeholder dynamically in 2.0 beta. Do I miss something? Thanks Click to expand... toload your UC instead of myUc = new myUc(); placehloader.control.add(myUc); do myUC = LoadControl("pathToUserWebControl"); placehloader.control.add(myUc);
G Guest Aug 18, 2005 #3 I have tried this but does not work. Somehow the control will not show up. on the page. I also tried to add to page but something is missing.
I have tried this but does not work. Somehow the control will not show up. on the page. I also tried to add to page but something is missing.
G Guest Aug 22, 2005 #5 Thanks Allen, Here is my code, it is exactly identical so if you say that it works then pretty sure something is wrong at my end. Page.LoadControl(pathtocontrol) Placeholder.Controls.Add(abovecontrol); Atul
Thanks Allen, Here is my code, it is exactly identical so if you say that it works then pretty sure something is wrong at my end. Page.LoadControl(pathtocontrol) Placeholder.Controls.Add(abovecontrol); Atul