Beginner: How to add a table to a tablecell?

Discussion in 'ASP .Net Web Controls' started by Jan Eliasen, Jan 21, 2004.

  1. Jan Eliasen

    Jan Eliasen Guest

    Hi

    I have a .ascx with an .ascx.cs codebehind.

    In my .ascx I have the folliwing;
    <asp:table id="new_OuterTable">
    <asp:TableRow ID="new_outerTableRow">
    <asp:TableCell>
    <img src="../ImagesForCode/space.gif">
    </asp:TableCell>
    <asp:TableCell ID="new_OuterTableRowCell2">
    <IMG alt="Some text" src="../ImagesForCode/space.gif">
    <br>
    </asp:TableCell>
    </asp:TableRow>
    </asp:table>

    And here I have another table. If I want this second table to appear
    just below the Image in the second tablecell, then what do I do? I
    want to do it in code, btw.

    Any help?

    --
    Jan Eliasen, representing himself and not the company he works for.
    MCP in Microsoft BizTalk Server
    Jan Eliasen, Jan 21, 2004
    #1
    1. Advertising

  2. Jan Eliasen

    Gerald Klein Guest

    Create the second table and add it as a child control to the cell you want
    it to appear.


    "Jan Eliasen" <> wrote in message
    news:...
    > Hi
    >
    > I have a .ascx with an .ascx.cs codebehind.
    >
    > In my .ascx I have the folliwing;
    > <asp:table id="new_OuterTable">
    > <asp:TableRow ID="new_outerTableRow">
    > <asp:TableCell>
    > <img src="../ImagesForCode/space.gif">
    > </asp:TableCell>
    > <asp:TableCell ID="new_OuterTableRowCell2">
    > <IMG alt="Some text" src="../ImagesForCode/space.gif">
    > <br>
    > </asp:TableCell>
    > </asp:TableRow>
    > </asp:table>
    >
    > And here I have another table. If I want this second table to appear
    > just below the Image in the second tablecell, then what do I do? I
    > want to do it in code, btw.
    >
    > Any help?
    >
    > --
    > Jan Eliasen, representing himself and not the company he works for.
    > MCP in Microsoft BizTalk Server
    Gerald Klein, Jan 21, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Craig
    Replies:
    4
    Views:
    6,313
    Craig
    Dec 9, 2003
  2. Brian K. Williams

    TableCell oTableCell = new TableCell(); noWrap?

    Brian K. Williams, Apr 30, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    2,526
    Brian K. Williams
    Apr 30, 2004
  3. Svein Terje Gaup
    Replies:
    0
    Views:
    8,053
    Svein Terje Gaup
    Sep 15, 2004
  4. Razor
    Replies:
    7
    Views:
    733
    Razor
    Apr 8, 2004
  5. Jeff User

    Add control to TableCell object

    Jeff User, May 22, 2007, in forum: ASP .Net
    Replies:
    2
    Views:
    605
    Jeff User
    May 22, 2007
Loading...

Share This Page