post your comment   print   send to a friend
Rate:   0% | Views: 725
Question categories:  ASP

How do I display data on a web page using arrays instead of 'Do...While...MoveNext...'?

 This FAQ describes the process of displaying data on a Web page through arrays instead of the traditional Recordset method.

While opening a Recordset object and then using a 'Do While Not objRS.EOF ... ' Loop and iterating through each row in the Recordset works well for displaying arrays, there are advantages to using a special Recordset method called GetRows(). GetRows() reads the contents of the Recordset into a two-dimensional array. To display the Recordset data, simply iterate through this array.

While the syntax involved in using the array-based approach is a bit more confusing that simply looping through the Recordset via a 'Do While Not objRS.EOF ...' Loop, the main motivation behind using GetRows() is performance.

 

 

Customer Feedback
Rate:   0% | Views: 725 | Please Rate:  
 
If you have other comments or ideas for future technical tips, please type them here:

Email: (optional)

Comments: (optional)

 Flash Web Design | Dedicated Servers    Back to serch results
Browse the Base
Knowledge Base
Web Design
  Do It Yourself
    ASP
Messages
Private Area
 
Ask
in Private
   
Personal
Folder
 
Related Questions
 
1. How can I display all of the contents of a single-dimension array?
 
2. Does ASP.Net still recognize the global.asa file?
 
3. Is it possible to run client-side .NET code within a browser?
 
4. What happened to date() and time()?
 
5. How do I extract the contents of an array without knowing the size of the array?
 
Home Browse Search Ask in Private Personal Folder   Help
powered by web hosting 
  Logged as: Guest