Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Turn The Page
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Turn The Page

 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: Turn The Page
    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.

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: 25 October 2003 at 6:32am
Mmm, you could try making an ASP.NET table, with 5 rows (per page)?
Gone..
Back to Top
The WizeGuy View Drop Down
Newbie
Newbie


Joined: 02 October 2003
Location: Sweden
Status: Offline
Points: 34
Post Options Post Options   Thanks (0) Thanks(0)   Quote The WizeGuy Quote  Post ReplyReply Direct Link To This Post 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

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