Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / December 2007

Tip: Looking for answers? Try searching our database.

How to convert?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Paulo - 18 Dec 2007 21:17 GMT
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!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.