Cached User Controls

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Steve

    #1

    Cached User Controls

    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

    #2
    Re: Cached User Controls

    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" <sdonaldson@far abi.com> wrote in message
    news:75dc01c344 8c$7df64e70$a40 1280a@phx.gbl.. .[color=blue]
    > 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?[/color]


    Comment

    Working...