user control inside a repeater - problem passing data table through a property

Discussion in 'ASP .Net' started by Korel Oktar, Jan 21, 2008.

  1. Korel Oktar

    Korel Oktar Guest

    I have a user control inside a repeater. I set a property of the usercontrol
    in each repeater data item. This property is used to display the data inside
    the user control.

    This structure works fine. However when I send a datatable through this
    property I end up loosing the data table reference when an event is fired
    inside the user control. I am able to store the datatable into viewstate and
    use it from there when I need but this is not an efficient approach since I
    store a very large data on client and increase the download times.

    I can't find why my reference becomes null when an event is fired, in the
    case I pass a data table / data row into the user control. Any help is much
    appreciated..

    Thank you
     
    Korel Oktar, Jan 21, 2008
    #1
    1. Advertisements

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. vatech1993
    Replies:
    4
    Views:
    5,903
    =?Utf-8?B?U8Opcmdpbw==?=
    Dec 11, 2004
  2. Leeor Chernov
    Replies:
    2
    Views:
    952
    Leeor Chernov
    Oct 16, 2005
  3. fernandezr
    Replies:
    8
    Views:
    636
    fernandezr
    Jul 7, 2006
  4. Guest
    Replies:
    2
    Views:
    636
    Guest
    Oct 1, 2006
  5. uncensored
    Replies:
    0
    Views:
    1,025
    uncensored
    Oct 25, 2006
  6. satyajit
    Replies:
    2
    Views:
    3,050
    satyajit
    Aug 21, 2007
  7. Kiran More
    Replies:
    2
    Views:
    517
    Kiran More
    Nov 14, 2006
  8. hmikki
    Replies:
    1
    Views:
    268
    Nathan Sokalski
    Oct 19, 2007
Loading...