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

  1. #1

    Default htmltable and table

    what is the difference between a htmltable control and a table control i
    know one is server control and the other is not, but when would each be
    used?

    also, how do you set the class of a html control to use a class in a CSS
    file? it doesn't have a CssStyle property, (but the server control does).

    thanks


    suzy Guest

  2. Similar Questions and Discussions

    1. How can I create a HTMLTable class from and HTML string.
      I have an XMLReader loaded the HTML from a web page. I want to pull a Table out of this XMLReader and use it to create an HTMLControls.HTMLTable...
    2. Can you add <col> control to Table webcontrol or HTMLTable control?
      I would like to add <col> tags right after <table> tags but it seems Table can't have a literal control as a child. <Table> <Col width="50">...
    3. HtmlTable parameter to webservice
      Hello, Can I pass HtmlTable as a parameter to web service method. Something like (VB syntax) : <WebMethod()> Public Function...
    4. #25473 [Opn->Bgs]: Updating single row in table causing all rows in table to be updated.
      ID: 25473 Updated by: sniper@php.net Reported By: jim at bluedojo dot com -Status: Open +Status: ...
    5. Could not load type VTFixup Table from assembly Invalid token in v-table fix-up table.
      We are getting this error after clearing the web.config of database infomation - even after using the wizard to re-enter the information. I could...
  3. #2

    Default Re: htmltable and table

    to answer your second question use
    HtmlTable.Attributes.Add("class","yourclassname");


    "suzy" <phillipa@nospamming.com> wrote in message
    news:%23Q4KFw2UDHA.2252@TK2MSFTNGP10.phx.gbl...
    > what is the difference between a htmltable control and a table control i
    > know one is server control and the other is not, but when would each be
    > used?
    >
    > also, how do you set the class of a html control to use a class in a CSS
    > file? it doesn't have a CssStyle property, (but the server control does).
    >
    > thanks
    >
    >

    Ron Vecchi Guest

  4. #3

    Default Re: htmltable and table

    Basically they are just different programming models.
    Personally I find the HTMLTable to be easier to work with at design time,
    while I find the web control easier to work with at run time.

    --
    I hope this helps,
    Steve C. Orr, MCSD
    [url]http://Steve.Orr.net[/url]


    "suzy" <phillipa@nospamming.com> wrote in message
    news:%23Q4KFw2UDHA.2252@TK2MSFTNGP10.phx.gbl...
    > what is the difference between a htmltable control and a table control i
    > know one is server control and the other is not, but when would each be
    > used?
    >
    > also, how do you set the class of a html control to use a class in a CSS
    > file? it doesn't have a CssStyle property, (but the server control does).
    >
    > thanks
    >
    >

    Steve C. Orr, MCSD 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