Cached User Controls

Discussion in 'ASP .Net' started by Steve, Jul 7, 2003.

  1. Steve

    Steve Guest

    I created a User Control that contains a button. I have
    the handler for the button called Button1_Click etc... Now
    if I cache this control within a page, the event does not
    get "wired up" and I am unable to execute the handler for
    the Click event because the control is cached. How do I
    get around this?
     
    Steve, Jul 7, 2003
    #1
    1. Advertising

  2. Steve

    Karl Seguin Guest

    Since this user control doesn't appear to be very static...maybe you should
    be looking at the cache object and caching specific elements of the user
    control - such as the datatable you use to bind to your repeater, or the
    XmlDataDocument you parse and use to populate your dropdownlist.

    Karl

    "Steve" <> wrote in message
    news:75dc01c3448c$7df64e70$...
    > I created a User Control that contains a button. I have
    > the handler for the button called Button1_Click etc... Now
    > if I cache this control within a page, the event does not
    > get "wired up" and I am unable to execute the handler for
    > the Click event because the control is cached. How do I
    > get around this?
     
    Karl Seguin, Jul 7, 2003
    #2
    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. feng
    Replies:
    3
    Views:
    10,314
    Teemu Keiski
    Feb 8, 2004
  2. Edward Chung
    Replies:
    2
    Views:
    641
    Aquila Deus
    Feb 13, 2005
  3. Craig G
    Replies:
    0
    Views:
    393
    Craig G
    Mar 7, 2005
  4. Justin Dutoit
    Replies:
    0
    Views:
    350
    Justin Dutoit
    Mar 19, 2008
  5. Steve

    Cached User Controls

    Steve, Jul 7, 2003, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    124
    Steve
    Jul 7, 2003
Loading...

Share This Page