Print Page | Close Window

Datagrids

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: ASP.NET Discussion
Forum Description: Discussion and chat on ASP.NET related topics.
URL: https://forums.webwiz.net/forum_posts.asp?TID=7818
Printed Date: 28 March 2026 at 9:03am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Datagrids
Posted By: FatOtis
Subject: Datagrids
Date Posted: 03 December 2003 at 7:18am

Is it possible to output data from a database in ASP.NET without using a datagrid. The reason for this is that I can't seem to be able to loop through a table or use a lot of the programing concepts that I'm used to using in ASP. Obviously, using datagrids is probally a much better option and carries out a lot of the task I'm attempting to do but I just can't seem to get the hang of it or find related information (before anyone thinks of saying "google it").

Any help would be nice, possibly some links to some good tutorials for ASP.NET and Access too lol.




Replies:
Posted By: Diep-Vriezer
Date Posted: 03 December 2003 at 7:28am

Sure, something like this will do it:

Dim Records As Integer, QuerysHad As Integer, CurrentQuery As Integer

Records = yourdataset.??? (something like #Entries)

Do While Records > QuerysHad

   HttpContext.Current.Response.Write("Database Entry:")
   QuerysHad = QuerysHad + 1

End While



-------------
Gone..


Posted By: MorningZ
Date Posted: 03 December 2003 at 7:34am
Originally posted by Diep-Vriezer Diep-Vriezer wrote:

Sure, something like this will do it:

Dim Records As Integer, QuerysHad As Integer, CurrentQuery As Integer

Records = yourdataset.??? (something like #Entries)

Do While Records > QuerysHad

   HttpContext.Current.Response.Write("Database Entry:")
   QuerysHad = QuerysHad + 1

End While

ick.. might as well just recommend "stay in ASP 3.0"

there's a few options other than DataGrid... there's the Repeater control and the DataList control

4guys article:
http://aspnet.4guysfromrolla.com/articles/052103-1.aspx - Understanding the Differences Among the DataGrid, DataList, and Repeater



-------------
Contribute to the working anarchy we fondly call the Internet


Posted By: Diep-Vriezer
Date Posted: 03 December 2003 at 7:36am
Got a better idea? Why don't you try it with datagrids or repeaters. That's a quicker easier and 'more .NET like' solution.

-------------
Gone..


Posted By: FatOtis
Date Posted: 03 December 2003 at 7:44am
Yea I'm gonig to fiddle around, read up some more and see if I get any restults. Thanks for the link MorningZ. Don't suppose you know of anywhere where I can download some basic sample code for a (VB) Guestbook / Weblog app?


Posted By: MorningZ
Date Posted: 03 December 2003 at 7:48am

http://www.asp.net/Default.aspx?tabindex=2&tabid=31 - http://www.asp.net/Default.aspx?tabindex=2&tabid=31

is some stuff that people have written



-------------
Contribute to the working anarchy we fondly call the Internet


Posted By: Mart
Date Posted: 03 December 2003 at 9:25am
http://www.hotscripts.com - http://www.hotscripts.com in the .net section



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net