Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Datagrids
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Datagrids

 Post Reply Post Reply
Author
FatOtis View Drop Down
Newbie
Newbie


Joined: 20 April 2003
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote FatOtis Quote  Post ReplyReply Direct Link To This Post Topic: Datagrids
    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.

Back to Top
Diep-Vriezer View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 August 2003
Location: Netherlands
Status: Offline
Points: 831
Post Options Post Options   Thanks (0) Thanks(0)   Quote Diep-Vriezer Quote  Post ReplyReply Direct Link To This Post 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..
Back to Top
MorningZ View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
Post Options Post Options   Thanks (0) Thanks(0)   Quote MorningZ Quote  Post ReplyReply Direct Link To This Post 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:
Understanding the Differences Among the DataGrid, DataList, and Repeater

Contribute to the working anarchy we fondly call the Internet
Back to Top
Diep-Vriezer View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 August 2003
Location: Netherlands
Status: Offline
Points: 831
Post Options Post Options   Thanks (0) Thanks(0)   Quote Diep-Vriezer Quote  Post ReplyReply Direct Link To This Post 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..
Back to Top
FatOtis View Drop Down
Newbie
Newbie


Joined: 20 April 2003
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote FatOtis Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
MorningZ View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
Post Options Post Options   Thanks (0) Thanks(0)   Quote MorningZ Quote  Post ReplyReply Direct Link To This Post Posted: 03 December 2003 at 7:48am

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
Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 03 December 2003 at 9:25am
http://www.hotscripts.com in the .net section
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.