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. 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. Leeor Chernov
    Replies:
    2
    Views:
    798
    Leeor Chernov
    Oct 16, 2005
  2. Guest
    Replies:
    2
    Views:
    474
    Guest
    Oct 1, 2006
  3. uncensored
    Replies:
    0
    Views:
    830
    uncensored
    Oct 25, 2006
  4. satyajit
    Replies:
    2
    Views:
    2,775
    satyajit
    Aug 21, 2007
  5. Kiran More
    Replies:
    2
    Views:
    327
    Kiran More
    Nov 14, 2006
Loading...

Share This Page