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. asp:Table vs. an HTML table

asp:Table vs. an HTML table

Scheduled Pinned Locked Moved ASP.NET
htmlcssvisual-studiodesignhelp
3 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.
  • R Offline
    R Offline
    RX Maverick
    wrote on last edited by
    #1

    What the advantages of one over the other when I'm programing a page? I understand that when the page is run it will change all the asp:Table, asp:TableRow, and asp:TableCell into their HTML counterparts so why not just use the counter parts? I understand most of the other asp:components and why they are better but I can't find a reason for asp:Table. So far I've noticed: I can't use Height and Width on the CSS versions I can't edit my cell contents in Design View I can't set a background image on the fly (I currently am using a CSS file but it seems a waste since all it has in it is repeating backgrounds and each class is only used once) Please tell me what I'm missing, what advantages I could gain, or if I should just start using the basic HTML table. Thanks for any help.

    N 1 Reply Last reply
    0
    • R RX Maverick

      What the advantages of one over the other when I'm programing a page? I understand that when the page is run it will change all the asp:Table, asp:TableRow, and asp:TableCell into their HTML counterparts so why not just use the counter parts? I understand most of the other asp:components and why they are better but I can't find a reason for asp:Table. So far I've noticed: I can't use Height and Width on the CSS versions I can't edit my cell contents in Design View I can't set a background image on the fly (I currently am using a CSS file but it seems a waste since all it has in it is repeating backgrounds and each class is only used once) Please tell me what I'm missing, what advantages I could gain, or if I should just start using the basic HTML table. Thanks for any help.

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      The advantage is runat="server", which of course treats it as any other serve control to use, and abuse, as necessary with your code behide. I don't understand the problems you are having with CSS, it is applied on the client side after the control has been rendered to appropriate HTML.


      only two letters away from being an asset

      R 1 Reply Last reply
      0
      • N Not Active

        The advantage is runat="server", which of course treats it as any other serve control to use, and abuse, as necessary with your code behide. I don't understand the problems you are having with CSS, it is applied on the client side after the control has been rendered to appropriate HTML.


        only two letters away from being an asset

        R Offline
        R Offline
        RX Maverick
        wrote on last edited by
        #3

        The CSS issues aren't that big of deal but why can I edit my cell contents in design view?

        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