adding rows to html table programmatically

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

    #1

    adding rows to html table programmatically

    i have a HTML file and it already has a HTML table and a few rows created by
    default.. however, i would like to add more rows to this table
    programmaticall y
    may i know how?

  • Peter Rilling

    #2
    Re: adding rows to html table programmaticall y

    1) Use the asp:Table, asp:TableRow, and asp:TableColumn instead of the
    standard HTML table tags.
    2) Make the each run at the server.
    3) Add the necessary protected variables in your code-behind so that the
    tables are correctly associated with the variables.

    Now you can use properties such as Rows and Columns to add the necessary
    structure.


    "bubbles" <bubbles@discus sions.microsoft .com> wrote in message
    news:4F4FAD65-4F23-4EC6-AA1A-3975962A25A9@mi crosoft.com...[color=blue]
    > i have a HTML file and it already has a HTML table and a few rows created[/color]
    by[color=blue]
    > default.. however, i would like to add more rows to this table
    > programmaticall y
    > may i know how?
    >[/color]


    Comment

    • bubbles

      #3
      Re: adding rows to html table programmaticall y

      Thanks for your reply.
      However, the HTML table come in a form of a template.
      Is it still possible to access this particular table and add rows to it
      programtically?

      thanks !
      :)

      "Peter Rilling" wrote:
      [color=blue]
      > 1) Use the asp:Table, asp:TableRow, and asp:TableColumn instead of the
      > standard HTML table tags.
      > 2) Make the each run at the server.
      > 3) Add the necessary protected variables in your code-behind so that the
      > tables are correctly associated with the variables.
      >
      > Now you can use properties such as Rows and Columns to add the necessary
      > structure.
      >
      >
      > "bubbles" <bubbles@discus sions.microsoft .com> wrote in message
      > news:4F4FAD65-4F23-4EC6-AA1A-3975962A25A9@mi crosoft.com...[color=green]
      > > i have a HTML file and it already has a HTML table and a few rows created[/color]
      > by[color=green]
      > > default.. however, i would like to add more rows to this table
      > > programmaticall y
      > > may i know how?
      > >[/color]
      >
      >
      >[/color]

      Comment

      • Sijin Joseph

        #4
        Re: adding rows to html table programmaticall y

        You can use the interfaces exposed by the WebBrowser control. And then
        use the IHTMLTable object to manipulate the HTML table.

        http://msdn.microsoft.com/workshop/b...webbrowser.asp
        http://msdn.microsoft.com/library/en...mldomfromc.asp
        http://msdn.microsoft.com/library/de...IHTMLTable.asp

        Sijin Joseph





        bubbles wrote:[color=blue]
        > i have a HTML file and it already has a HTML table and a few rows created by
        > default.. however, i would like to add more rows to this table
        > programmaticall y
        > may i know how?
        >[/color]

        Comment

        • Sijin Joseph

          #5
          Re: adding rows to html table programmaticall y

          You can use the interfaces exposed by the WebBrowser control. And then
          use the IHTMLTable object to manipulate the HTML table.

          http://msdn.microsoft.com/workshop/b...webbrowser.asp
          http://msdn.microsoft.com/library/en...mldomfromc.asp
          http://msdn.microsoft.com/library/de...IHTMLTable.asp

          Sijin Joseph





          bubbles wrote:[color=blue]
          > i have a HTML file and it already has a HTML table and a few rows created by
          > default.. however, i would like to add more rows to this table
          > programmaticall y
          > may i know how?
          >[/color]

          Comment

          Working...