odd problem when adding contrls to placeholders
-
method 1: on my page I have a featuredItem control and within this control there is a title along with another place holder. I am having a hard time adding an item to the placeholder within the featuredItem control. When I try the std way of featuredItem.plhItem.Controls.add(someItem) it does not work and says that I can't access the protected variable. I think I worked around that by creating a public method that does the adding of the control, but haven't been able to test it yet. But why am I unable to add the control? method 2: instead of having the placeholder for the item within the featured item I simply inserted an item control instead. But I am unable to set any of the parameters from the vb for the page unless I declare the control within the vb class. FIX---> It seems that user controls have to be declared in the vb while asp controls do not, am I right in saying that? Why is this, because I have before thought that I had to declare all the controls I added to the page, but when I did that for the asp controls it through errors. Thanks for the help