C
Chad
Which is generally faster:
Using...
1) Databound controls, such as the datagrid.
2) Creating your own tables like this:
Dim MyTable as newTable
Dim MyRow as new Row
MyTable.Rows.Add(MyRow)
Dim MyCell As New Cell
MyRow.Cells.Add(MyCell)
etc...
3) Dim s as string
s = "<TABLE>
s &= "<TR>
(etc)
s &= </TABLE>
Response.Write (s)
I assume 3 is the faster but the worse to maintain.
I like method 2 because it is flexible an easy to understand.
Is databinding faster? I find the code shorter and uglier and feel that the
code is more difficuly to follow.
Is there another approach?
Using...
1) Databound controls, such as the datagrid.
2) Creating your own tables like this:
Dim MyTable as newTable
Dim MyRow as new Row
MyTable.Rows.Add(MyRow)
Dim MyCell As New Cell
MyRow.Cells.Add(MyCell)
etc...
3) Dim s as string
s = "<TABLE>
s &= "<TR>
(etc)
s &= </TABLE>
Response.Write (s)
I assume 3 is the faster but the worse to maintain.
I like method 2 because it is flexible an easy to understand.
Is databinding faster? I find the code shorter and uglier and feel that the
code is more difficuly to follow.
Is there another approach?