codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Paging in DataList  popin at 08:52 on Saturday, September 11, 2004
 

I'm creating a shopping cart and I'm using a DataList for displaying the products.
Now I'm facing a problem during paging.
I want each of my product pages (I'm having n number of pages) displays 9 items in a DataList in 3 columns and 3 rows and each of the product pages should have hyperlinks to the other pages.
Now each of the product pages should display the previous and the next button and 9 hyperlinked pages in between them e.g << 1 2 3 4 5 6 7 8 9 >> ...in this way.
Now if I click on 1,I'll be taken to the 1st page but over there I'll get the hyperlinks to the rest of the pages but not 1 and 1 will not be visible e.g. <<2 3 4 5 6 7 8 9 10 >> ...in this way. Again if I move to 2, it will show me the 2nd page but 1st and 2nd pages hyperlinks would not be there e.g. <<3 4 5 6 7 8 9 10 11>> ... in this way...

Can anyone help?
I need the code urgently...
It would be of great help.

Thanks.








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Sorry I posted In the wrong Place,,,,I need Help with my DataGrid
•  Help with a DataGrid
•  Help: FSO -> Network Drive
•  Server Error in `/` Application.
•  URL code
•  Paging in DataList
•  Re: servlet login
•  Re: urgent!Need help please.......
•  Re: MailAttachment


Recent Articles
Simple Thumbnail Solution
Type Anywhere
A Better Moustrap: FmtDate to replace FormatDateTime
ASP.NET Forum Source Code
Internal Search Engine
Javascript Growing Window
Simple date validation
Search engine friendly URLs using ASP.NET (C#.NET)
Function to Return Alpha Characters Only
The OSI Reference Model - A Clear and Concise Illustration !


Site Survey
Help us serve you better. Take a five minute survey. Click here!

© Copyright codetoad.com 2001-2004