UserControl in a datalist

Discussion in 'ASP .Net Web Controls' started by Anthony, Jul 5, 2004.

  1. Anthony

    Anthony Guest

    I have a long running issue that I haven't got a clear resolution to
    anywhere. I have a datalist that I have managed to implement paging in. Yes
    datalist. It is done in the footer template of the datalist using link
    buttons. I handle the click event of the paging buttons in the
    footertemplate increment the page variable and call my bind event at the end
    of it. The paging works fine. I also have a UserControl as one of the
    controls in on of the column of the datalist. This UserControl takes the id
    of the parent row and return data in one of if condition is met two repeater
    control. All this works for the initial pageload of the datalist. But when I
    page to the next page then everything works except my usercontrol. When I
    watch it in the debug window at the time the usercontrol fires there is no
    value. If I store the value in a cookie then it shows that it fires out of
    sequence cause all the usercontrol has the same value for all the rows,
    which is the value that comes from using the value of the late record in the
    datalist. Could anyone help me resolve this. I would really appreciate it.

    Thanks
     
    Anthony, Jul 5, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. huobazi
    Replies:
    1
    Views:
    721
    David Waz...
    Jul 3, 2003
  2. Rajesh Tiwari

    Can we use a usercontrol inside a usercontrol

    Rajesh Tiwari, Aug 12, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    435
    Rajesh Tiwari
    Aug 12, 2003
  3. Nevyn Twyll
    Replies:
    8
    Views:
    1,925
  4. nail
    Replies:
    0
    Views:
    1,564
  5. Phl
    Replies:
    2
    Views:
    543
    =?Utf-8?B?VGFtcGEgLk5FVCBLb2Rlcg==?=
    Nov 18, 2004
Loading...

Share This Page