•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C# section within the Software Development category of DaniWeb, a massive community of 397,803 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,489 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C# advertiser:
Views: 6688 | Replies: 3 | Solved
![]() |
•
•
Join Date: May 2006
Posts: 4
Reputation:
Rep Power: 0
Solved Threads: 0
I need some help regarding Paging on a Gridview.
I have a few dropdownlists and textbox and a gridview. At first load, the gridview will be populated with data from the sql server. And, I did a search and it works for the first page. When I press the second page, it will be populated back to the database data which it should not be.
Is there anyway to retain my search results when I press subsequence page?
Thanks.
I have a few dropdownlists and textbox and a gridview. At first load, the gridview will be populated with data from the sql server. And, I did a search and it works for the first page. When I press the second page, it will be populated back to the database data which it should not be.
Is there anyway to retain my search results when I press subsequence page?
Thanks.
try storing it in your context.session.
ive always prefered to just hit the database again for each page.
just grab only enough each query to fill one page.
EDIT: sorry i just realized, that you may not be talking about asp.net oops.
in that case, fill a dataset up with the data you need, and pull data from that
ive always prefered to just hit the database again for each page.
just grab only enough each query to fill one page.
EDIT: sorry i just realized, that you may not be talking about asp.net oops.
in that case, fill a dataset up with the data you need, and pull data from that
Last edited by plazmo : Oct 3rd, 2006 at 4:32 pm.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb C# Marketplace
- set a dynamic page size for gridview? (ASP.NET)
- paging problem (ASP)
- GridView Insert Problem (ASP.NET)
- Convert XML data to sql table through coding in ASP.Net2.0 (Techies' Lounge)
- Problem Updating Row in GridView (ASP.NET)
- "ADODB Recordset error" (ASP)
Other Threads in the C# Forum
- Previous Thread: shutdown.exe (Question)
- Next Thread: Get image from resources


Linear Mode