placeholder in usercontrol
-
I have a WebForm that I am dynamically loading a usercontrol "uc1" into the page. The usercontrol "uc1" has a placeholder "ph1". From the page on_load, I would like to dynamically load a second usercontrol "uc2" into the placeholder "ph1" that is in the 1st usercontrol that was loaded. Is using FindControl the best way to do this? If so, does anyone have a code example?
-
I have a WebForm that I am dynamically loading a usercontrol "uc1" into the page. The usercontrol "uc1" has a placeholder "ph1". From the page on_load, I would like to dynamically load a second usercontrol "uc2" into the placeholder "ph1" that is in the 1st usercontrol that was loaded. Is using FindControl the best way to do this? If so, does anyone have a code example?
I haven't tried anything exactly like what you want, but what i can say based on my experience with such situations is that make sure ur uc1 is completely loaded before u proceed with ur further operations on uc1 good luck, do post any problems you might have.. "Rejoice always, pray without ceasing, in everything give thanks; for this is the will of God in Christ Jesus for you."1Thess. 5:16-18