Professional Web Applications Themes

dynamically creating table - ASP.NET General

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" <menospam.com> wrote in message news:%23xDy2z4RDHA.2236tk2msftngp13.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 ...

  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" <menospam.com> wrote in message
    news:%23xDy2z4RDHA.2236tk2msftngp13.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. #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

Similar Threads

  1. dynamically creating charts
    By LittleMuscle in forum Macromedia Flex General Discussion
    Replies: 1
    Last Post: April 7th, 05:41 AM
  2. Dynamically creating CSS
    By Nathan Sokalski in forum ASP.NET Building Controls
    Replies: 1
    Last Post: October 8th, 04:58 AM
  3. Dynamically creating buttons per row: how?
    By who be dat? in forum ASP.NET Data Grid Control
    Replies: 4
    Last Post: June 27th, 01:32 AM
  4. creating lists dynamically
    By quinrou in forum Macromedia Director Lingo
    Replies: 3
    Last Post: September 26th, 01:18 PM
  5. Creating Fields Dynamically
    By Steven P. webforumsuser@macromedia.com in forum Macromedia Director Lingo
    Replies: 1
    Last Post: September 24th, 11:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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