dynamically creating table

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Re: dynamically creating table

    Place the content you create into a placeholder i.e.

    <asp:placeholder id="someid" runat="server" />

    and in your page_load reference the place holder

    Rick

    "suzy" <me@nospam.com> wrote in message
    news:%23xDy2z4RDHA.2236@tk2msftngp13.phx.gbl...
    > i have 2 questions...
    >
    > i have a page where the top half is hyperlinks and the bottom half is a
    > table containing text (the text depends on which hyperlink you click on
    the
    > top half).
    >
    > if the table of text is read-only, would there ever be a need to make it a
    > server side table.
    >
    > secondly, i have some code which dynamically creates a table (i haven't
    > dragged a table control onto my page). My code is in the page_load event
    of
    > my aspx. the code works but when i run the page, the table appears after
    > the closed HTML tag, so it doesn't appear on the page (only in the
    source).
    >
    > where do i need to put the code that generates the table in my aspx page?
    >
    >

    Rick Walsh Guest

  2. Similar Questions and Discussions

    1. dynamically creating charts
      i am trying to dynamically create a chart but it isn't working. can someone look at my code and tell me what i am doing wrong. private function...
    2. dynamically creating pie chart
      I have a format that we use to create pie charts and i would like to create a tool to generate the chart in the format we want just by passing 3...
    3. Dynamically creating CSS
      I have a User Control (.ascx & .ascx.vb) for which I need to dynamically specify certain CSS stylesheet properties. Because the controls that I use...
    4. Creating a Database Dynamically
      Is there a way to create an access database or table dynamically?
    5. Dynamically Creating Variables
      Hello, I have a chunk of code that executes six statement handles from the DBI module as follows: $sth1->execute; $sth2->execute;...
  3. #2

    Default Re: dynamically creating table

    Try this

    // may need to replace Form1 below with whatever you call your form
    Control form = this.Page.FindControl("Form1");
    form.Controls.Add(yourDynamicallyGeneratedTable);

    HTH,

    Todd Thompson
    Todd Thompson Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139