Automatic Paging in a DataList

Posted on 2006-06-01
Last Modified: 2012-08-13

I have a DataList on my page, defined in the markup (i.e., not added via C# code). When a button

is clicked, then, from C# code, I obtain a SqlDataReader and then assign in to the DataSource

property of the DataList.

Is there any easy way to enable paging in the DataList?

Thanks :)
Question by:muskad202
    LVL 19

    Accepted Solution

    Unfortunately the DataList does not have inbuild paging, but when you really want to, you can always get the effect.

    This is explained here...all be it in VB.NET, I hope it will still help you.


    LVL 2

    Author Comment

    thanks a lot :)
    LVL 19

    Expert Comment

    Not a problem :)


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    I have developed many web applications with asp & and to add and use a dropdownlist was always a very simple task, but with the new, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
    A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now