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. Table Control

Table Control

Scheduled Pinned Locked Moved ASP.NET
helpcssdesign
2 Posts 2 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.
  • A Offline
    A Offline
    Anzy
    wrote on last edited by
    #1

    Hi all, Currently I have a Table object that's being populated on Page_Load(). ----------------------------------------------------------------------- protected System.Web.UI.WebControls.Table Table_Menu; private void Page_Load(object sender, System.EventArgs e) { populate_table(Table_Menu); } ------------------------------------------------------------------------- This table object contains controls like LinkButtons or other more Table objects (nested tables). But this results in 2 problems: Problem 1. States of the nested table properties (eg, visible, enable) cannot be maintained, since the table gets regenerated on each page load. Problem 2. Generating the table is expensive. So I really need a way that would allow me to generate the table only once or just less. If anyone cld help it'd be really appreciated. Thanks.

    C 1 Reply Last reply
    0
    • A Anzy

      Hi all, Currently I have a Table object that's being populated on Page_Load(). ----------------------------------------------------------------------- protected System.Web.UI.WebControls.Table Table_Menu; private void Page_Load(object sender, System.EventArgs e) { populate_table(Table_Menu); } ------------------------------------------------------------------------- This table object contains controls like LinkButtons or other more Table objects (nested tables). But this results in 2 problems: Problem 1. States of the nested table properties (eg, visible, enable) cannot be maintained, since the table gets regenerated on each page load. Problem 2. Generating the table is expensive. So I really need a way that would allow me to generate the table only once or just less. If anyone cld help it'd be really appreciated. Thanks.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Anzy wrote: States of the nested table properties (eg, visible, enable) cannot be maintained, since the table gets regenerated on each page load. Not true. You need to pull the states out of viewstate in or before Page_Load, then restore them in PreRender. Anzy wrote: Generating the table is expensive. So I really need a way that would allow me to generate the table only once or just less. Where is the stuff coming from to populate the table ? What's in the table ? Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder

      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