Print Page | Close Window

Turn The Page

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=6699
Printed Date: 28 March 2026 at 9:10pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Turn The Page
Posted By: FatOtis
Subject: Turn The Page
Date Posted: 25 October 2003 at 5:59am

Just been playing around with ADO.NET and decided to test my skills by making a guestbook, but I have a problem:. I just can figure out how to get a DataGrid  to only display the first 5 (for example) number of records in the database. Then have 'Next Page' and 'Previous Page' links at the bottom... Maybe I should look into using XML (or use the traditional method) lol.

Fat Otis.




Replies:
Posted By: Diep-Vriezer
Date Posted: 25 October 2003 at 6:32am
Mmm, you could try making an ASP.NET table, with 5 rows (per page)?

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


Posted By: The WizeGuy
Date Posted: 25 October 2003 at 4:26pm

What You need to do is to look up the class: DataGrid in the NET Framework SDK and check all properties and methods.

 

The datagrid has Paging built-in. You just need to know how to "trigger" the paging

Could show You some code, but this text-box donīt support cut & paste and to write all that code is just tooooo much to ask 

cya,

/PatrikB



Posted By: Diep-Vriezer
Date Posted: 25 October 2003 at 4:31pm

Uhhm, it does support cut n paste.. This is not usefull code, but to show it..

#Region " Web Form Designer Generated Code "

'This call is required by the Web Form Designer.

<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()

End Sub

Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init

'CODEGEN: This method call is required by the Web Form Designer

'Do not modify it using the code editor.

InitializeComponent()

End Sub



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



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