Cached User Controls

S

Steve

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?
 
K

Karl Seguin

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top