|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category.
** PLEASE BE SPECIFIC WITH YOUR QUESTION **
When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
August 17th, 2004, 10:54 AM
|
|
Friend of Wrox
|
|
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
|
|
Is there a reason you can't use some of the suggestions that have already been made? Is there a reason you can't use a datagrid? A datagrid outputs an HTML table. It will do all the work for you.
|
August 18th, 2004, 04:28 AM
|
Authorized User
|
|
Join Date: Aug 2004
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
that's company requirenment
waiting for reply
|
August 18th, 2004, 09:03 AM
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
Ham-
Are you aware the output of a datagrid is nothing more than an HTML table? Perhaps you should look into the controls availible to you rather than re-spinning things.
Hal Levy
Web Developer, PDI Inc.
NOT a Wiley/Wrox Employee
|
August 18th, 2004, 03:40 PM
|
|
Friend of Wrox
|
|
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
|
|
Ham- can you further define this company requirement? I have never heard of a company requirement dictating what HTML you can use. Perhaps the company needs to have a better understanding of the technology they are trying to use.
It sounds like they are willing to use a porche, but instead of running it with the engine that is built it, they'd rather pull it with a donkey.
|
August 18th, 2004, 04:04 PM
|
|
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Ham,
Even if you can't or are not allowed to use the DataGrid control, what's wrong with the article about paging with the Repeater and DataLists controls? A Repeater does *not* output any HTML, other than that you specify for each item. It's pretty much the same as old skool looping through a recordset, Response Writing your HTML, except that the Repeater offers you a nice, programmatic interface.
If you're not willing to investigate links / solutions like this, I am afraid you'll be waiting for an answer indefinitely....
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|
August 19th, 2004, 12:29 AM
|
Authorized User
|
|
Join Date: Aug 2004
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
imar
can u tell how to implement paging using repeator or datalist control
|
August 19th, 2004, 12:49 AM
|
|
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
How many times do you want an answer to this questions?
Follow the first link I posted.....
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|
August 19th, 2004, 08:00 AM
|
Friend of Wrox
|
|
Join Date: Jul 2004
Posts: 623
Thanks: 0
Thanked 1 Time in 1 Post
|
|
my dear,if u still insist on using datareader use the method Peter mentioned
Quote:
quote:
But in either case, you are still only using a forward-only data source (the datareader). So when you go "back" a page you are technically only going forward n-1 pages from where you were (n).
|
although its better use other ways.
--------------------------------------------
Mehdi.:)
|
August 19th, 2004, 08:21 AM
|
Authorized User
|
|
Join Date: Aug 2004
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
which method by peter
|
|
|