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. problem rendering placeholder with user controls added to it

problem rendering placeholder with user controls added to it

Scheduled Pinned Locked Moved ASP.NET
htmlwinformssysadminhelpquestion
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.
  • D Offline
    D Offline
    dd314159
    wrote on last edited by
    #1

    I have a user control I'm adding to a placeholder control - and only the first user control is placed properly on the page after rendering. Here is the html fragment where I add the placeholder to the page. then i dynamically add user controls to the placeholder. Only the first one gets placed properly on the page. <table> <tr> <td align="right"> <table cellspacing="0"> <tr> <td align="center"> <asp:Label ID="Label12" text="Select a different category: " runat="server"></asp:Label> </td> <td> <asp:DropDownList ID="DropDownListProductFamily" runat="server" AutoPostBack="true" OnSelectedIndexChanged="DropDownListProductFamily_SelectedIndexChanged" ></asp:DropDownList> </td> </tr> <tr> <td align="center"> <asp:Label ID="Label13" text="(Your order quantities will be saved.)" runat="server" CssClass="notes"></asp:Label> </td> </tr> </table> </td> </tr> <tr> <td align="left"> <asp:PlaceHolder ID="FOBLocationOrderContainer" EnableViewState="false" runat="server" > </asp:PlaceHolder> </td> </tr> </table> In FOBLocationOrderContainer I add user controls - but no matter what alignment or left adjustment I make only the first control is placed correctly on the page. What do i need to do to get each user control to be left justified 20px from the left edge of a master page?

    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