Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7528307
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T04:20:34+00:00 2026-05-30T04:20:34+00:00

Project : ASP.NET 3.5 Server : SQL Server 2008 One of the page in

  • 0

Project : ASP.NET 3.5

Server : SQL Server 2008

One of the page in the project is used to list all log entry(including errors, information etc). So the there will be huge amount of records to list.

I would like to create a ‘Pager’ user control so that I can use it everywhere. I cannot use pager provided by ASP.NET, because the pager may have lot of additional functionality(such as SelectAllRecords etc).
So for ‘LogListPage’, I will call GetLogInfo() function to get the data.
for ‘OrderListPage’, I will call GetOrderInfo() etc…

For each function, I will pass ‘PageSize’ and ‘CurrentPage’ so that I can effectively select required number of record(instead of selecting all records).

So my question is, how can I create the control as a general control ? Because for each page, I have to call different functions. I can refer to list page’s gridview by creating a public property in user control. But if I click, ‘First’, ‘Previous’,’Next’, or ‘Last’ links of the user control, I have to connect to database and select records. Can I pass the function name to the user control and execute the function, then bind the grid?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T04:20:35+00:00Added an answer on May 30, 2026 at 4:20 am

    First of all: start from HERE

    then, I can suggest to create a level of abstraction between the paginator control and the database. If you define a general mode for all the page, you can bind your paginator to a datasource that does not depend on the database.

    We are talking about log, so abstract a log entry should be not so difficult.

    You should also think to extend the control as detailed HERE

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to connect a SQL Server 2008 database to an asp.net website project.
I've created a medium-sized web-based automation project for a university (VS2010,C#,ASP.NET,SQL Server 2008), now
I started my project in Asp.net MVC(c#) & SQL Server 2005.I want to implement
I am developing a C# VS 2008 / SQL Server 2008 ASP.NET Web Applications
Is it possible to connect to a SQL Server Express 2008 database in ASP.NET
I am going lead a project, where I have Asp.Net webapp with SQL Server
The setup: Winform/ASP.NET MVC projects. Learning NHibernate SQL-Server driven apps I work with clients
So I am working on a project that uses a ASP.NET server and we
I have an ASP.Net project using AJAX that I am putting on a server
I've added a pre-build action for an ASP.NET web control (server control) project, that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.