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 7571113
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T15:35:40+00:00 2026-05-30T15:35:40+00:00

I am a new ASP.NET developer and now I am having an issue in

  • 0

I am a new ASP.NET developer and now I am having an issue in the system that I am working on it. I have a GridView and I already enabled the paging functionality on it. What I want now is showing 12 or 14 elements in the GridView and then use paging to show the other next 12 elements, so how to do that?

My ASP.NET code:

<!-- Content Goes Here! -->
                                        <asp:GridView ID="GridView3" runat="server" AutoGenerateColumns="False" 
                                            DataSourceID="SqlDataSource6" CssClass="datatable"
                                            CellPadding="0" BorderWidth="0px" GridLines="None" 
                                        OnDataBinding="GridView3_DataBinding" AllowPaging="True">

                                            <Columns>
                                                <asp:BoundField DataField="Title" HeaderText="Quiz" 
                                                    SortExpression="Title" />
                                                <asp:BoundField DataField="DivisionShortcut" 
                                                    HeaderText="Division" 
                                                    SortExpression="DivisionShortcut" />
                                                <asp:BoundField DataField="Total Number of Participants" 
                                                    HeaderText="Total Number of Participants" ReadOnly="True" 
                                                    SortExpression="Total Number of Participants"/>
                                            </Columns>

                                            <RowStyle CssClass="row" />

                                            <SortedAscendingCellStyle CssClass="sortasc"></SortedAscendingCellStyle>
                                            <SortedAscendingHeaderStyle CssClass="sortasc"></SortedAscendingHeaderStyle>
                                            <SortedDescendingHeaderStyle CssClass="sortdesc"></SortedDescendingHeaderStyle>
                                        </asp:GridView>

                                        <asp:SqlDataSource ID="SqlDataSource6" runat="server" 
                                        ConnectionString="<%$ ConnectionStrings:testConnectionString %>" SelectCommand="SELECT     dbo.Quiz.Title, dbo.Divisions.DivisionShortcut,  COUNT(DISTINCT dbo.UserQuiz.Username) AS [Total Number of Participants]
        FROM         dbo.employee INNER JOIN
                              dbo.UserQuiz ON dbo.employee.Username = dbo.UserQuiz.Username INNER JOIN
                              dbo.Quiz ON dbo.UserQuiz.QuizID = dbo.Quiz.QuizID INNER JOIN
                              dbo.Divisions ON dbo.employee.DivisionCode = dbo.Divisions.SapCode
        GROUP BY dbo.Quiz.Title, dbo.Divisions.DivisionShortcut
        ORDER BY dbo.Quiz.Title"></asp:SqlDataSource>

So how to do that?

  • 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-30T15:35:42+00:00Added an answer on May 30, 2026 at 3:35 pm
    AllowPaging="True" PageSize="12"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am a brand new Java developer (I have been working in asp.net) and
I have been a web developer for some time now using ASP.NET and C#,
I have extensive experience working in ASP.NET and Sql Server but I am new
I am fairly new in asp.net development, so you can say that I have
I created a new ASP.NET website using Visual Web Developer 2008 Express edition and
I'm developer moving from C# to Java. Heard about new ASP net feature. <%:
Does ASP.NET MVC require IIS? Could I develop an application that uses the new
I'm using the new ASP.Net ListView control to list database items that will be
I create new ASP.NET web application that use SMTP to send message. The problem
I have a new ASP.NET MVC project (my first), and I had been running

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.