htmltable and table

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • suzy

    #1

    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


  • Ron Vecchi

    #2
    Re: htmltable and table

    to answer your second question use
    HtmlTable.Attri butes.Add("clas s","yourclassna me");


    "suzy" <phillipa@nospa mming.com> wrote in message
    news:%23Q4KFw2U DHA.2252@TK2MSF TNGP10.phx.gbl. ..[color=blue]
    > 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
    >
    >[/color]


    Comment

    • Steve C. Orr, MCSD

      #3
      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



      "suzy" <phillipa@nospa mming.com> wrote in message
      news:%23Q4KFw2U DHA.2252@TK2MSF TNGP10.phx.gbl. ..[color=blue]
      > 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
      >
      >[/color]


      Comment

      Working...