Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. odd problem when adding contrls to placeholders

odd problem when adding contrls to placeholders

Scheduled Pinned Locked Moved ASP.NET
helpwinformsquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kowplunk
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups