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. Contents of a Table

Contents of a Table

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netdesigngame-devhelp
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
    afronaut
    wrote on last edited by
    #1

    Hey all, I'm doing some ASP.NET Programming and dynamically populate an instance of System.Web.UI.WebControls.Table with some data. Afterwards I'd like to give the user the option of "saving" this but System.Web.UI.WebControls.Table does not support an "InnerHtml" property. I tried to put it inside of a DIV (HtmlGenericControl) but when I referenced the InnerHtml property of this I got a different error: Cannot get inner content of [my control] because the contents are not literal. Anyone run into this before? Tips? *->>Always working on my game, teach me *->>something new. cout << "dav1d\n";

    C 1 Reply Last reply
    0
    • A afronaut

      Hey all, I'm doing some ASP.NET Programming and dynamically populate an instance of System.Web.UI.WebControls.Table with some data. Afterwards I'd like to give the user the option of "saving" this but System.Web.UI.WebControls.Table does not support an "InnerHtml" property. I tried to put it inside of a DIV (HtmlGenericControl) but when I referenced the InnerHtml property of this I got a different error: Cannot get inner content of [my control] because the contents are not literal. Anyone run into this before? Tips? *->>Always working on my game, teach me *->>something new. cout << "dav1d\n";

      C Offline
      C Offline
      ChrisAdams
      wrote on last edited by
      #2

      I take it that you are trying to save the html of the table to some file on the server? If this is the case, then you could create a htmlwriter and then call the render on the table control. Then save the stream down to a file.

      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