Hi, I'm asp.net newbie and converting a old classic asp system, and on
classic asp we had:
<table>
<% While rs.eof %>
<tr>
<% For I = 1 To 3 'we'll have 3 columns, etc... %>
<td></td>
<% Next %>
</tr>
<% rs.Next
Loop
etc %>
What is equivalent on asp.net? it would be GridView?
Is possible to control dynamically the quantity of columns wich the table
will have?
because on asp we have total control over how the html will be produced,
with the tags <% %> inside the <table><tds><trs> etc...
Not a easy task converting to asp.net, dont you think ?
Thanks a lot!
Peter Bromberg [C# MVP] - 18 Dec 2007 21:43 GMT
Yup, GridView. And you would bind a DataTable from a DataSet to it in one
line of code.
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
MetaFinder: http://www.blogmetafinder.com
> Hi, I'm asp.net newbie and converting a old classic asp system, and on
> classic asp we had:
[quoted text clipped - 21 lines]
>
> Thanks a lot!
Scott M. - 18 Dec 2007 22:43 GMT
And you can easily control what columns you want to display and what order
you want to see them in.
> Yup, GridView. And you would bind a DataTable from a DataSet to it in one
> line of code.
[quoted text clipped - 28 lines]
>>
>> Thanks a lot!
Peter Bromberg [C# MVP] - 19 Dec 2007 20:43 GMT
Yes, and what is surprising is how many former classic ASP developers ignore
all these features and persist in doing it "the old fashioned way"...

Signature
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
MetaFinder: http://www.blogmetafinder.com
> And you can easily control what columns you want to display and what order
> you want to see them in.
[quoted text clipped - 31 lines]
> >>
> >> Thanks a lot!