HighTechTalks DotNet Forums  

How to convert?

ASP.net ASP.net discussions (microsoft.public.dotnet.framework.aspnet)


Discuss How to convert? in the ASP.net forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Paulo
 
Posts: n/a

Default How to convert? - 12-18-2007 , 04:17 PM






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!



Reply With Quote
  #2  
Old   
Peter Bromberg [C# MVP]
 
Posts: n/a

Default RE: How to convert? - 12-18-2007 , 04:43 PM






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


"Paulo" wrote:

Quote:
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!




Reply With Quote
  #3  
Old   
Scott M.
 
Posts: n/a

Default Re: How to convert? - 12-18-2007 , 05:43 PM



And you can easily control what columns you want to display and what order
you want to see them in.


"Peter Bromberg [C# MVP]" <pbromberg (AT) yahoo (DOT) NoSpamMaam.com> wrote

Quote:
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


"Paulo" wrote:

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!






Reply With Quote
  #4  
Old   
Peter Bromberg [C# MVP]
 
Posts: n/a

Default Re: How to convert? - 12-19-2007 , 03:43 PM



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"...
--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
MetaFinder: http://www.blogmetafinder.com


"Scott M." wrote:

Quote:
And you can easily control what columns you want to display and what order
you want to see them in.


"Peter Bromberg [C# MVP]" <pbromberg (AT) yahoo (DOT) NoSpamMaam.com> wrote in message
news:7190E1E9-997A-41B3-B922-6264B5684DAE (AT) microsoft (DOT) com...
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


"Paulo" wrote:

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!







Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.