Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

c# - controlling datalist paging in a user control

  • 22-10-2006 4:22pm
    #1
    Registered Users, Registered Users 2 Posts: 872 ✭✭✭


    Hi,

    I have a page with a user control that contains a datalist that outputs products.

    In the page design there is basic paging for the products but i cant put this in the same user control.

    Is it possible to control the paging in one UC with a datalist in another UC ?

    I hope i have made myself clear

    thanks


Comments

  • Moderators, Society & Culture Moderators Posts: 9,689 Mod ✭✭✭✭stevenmu


    Don't know if this would work or not, but could you add some public methods to your datalist user control to expose the paging functionality, then when you initialise the control, pass a reference for it to your paging user control so that it can access those methods ?


  • Registered Users, Registered Users 2 Posts: 7,468 ✭✭✭Evil Phil


    Would the Observer Pattern be relevant for this? http://en.wikipedia.org/wiki/Observer_pattern


Advertisement