473,414 Members | 1,630 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

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?
Nov 17 '05 #1
1 1085
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" <sd********@farabi.com> wrote in message
news:75****************************@phx.gbl...
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?

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
by: Jay Levitt | last post by:
I'm just starting to play around with CSS and MovableType. My home page (http://www.jay.fm) now validates on both the CSS and the XHTML. However, the Google cached version shows the wrong font in...
10
by: cosmic foo | last post by:
I have a page with about 100 images of about 10k each. where a typical img tag looks like this, <img src="item001.jpg" height="70" alt="" onMouseOver="showPic(this)" border="0"> Not all the...
2
by: JTS | last post by:
How can I view all pages, user controls, etc that are currently cached? I simply want to know which pages have been cached, and which versions of the pages are currently cached. Is this possible?
3
by: feng | last post by:
In my ASP.Net app I have a aspx page that's called by an other page's client side JavaScript code. The problem is that the first time this page get loaded, it will be cached in the user's local...
2
by: Simon | last post by:
Hi everyone, I'm using a repeater on a page of mine to display a list of hospitals pending authorisation to take part in a trial. When the user clicks a button it takes him/her to another page...
0
by: JenHu | last post by:
Hi experts, I am having trouble calling the cached dataview session and dataview.rowfilter session in the pageIndexChanged event. Currently, if user goes to page 2, the datagrid displays data...
2
by: Edward Chung | last post by:
I create a user control that is used as a page header for all application's pages. The user control contains a HyperLink control named accountHyperlink whose text can either set to...
2
by: Simon Rigby | last post by:
Hi folks, ASP.NET2, Sql Server 2005 I have an app that executed a sql server query that produces an XML file used as the DateFile for an XMLDataSource bound to a TreeView. The bizarre thing...
1
by: ABCL | last post by:
Hi all Can any one tell me if I want to cache the User control, Where does it cached? I am not able to it in "Cache" object Thanks
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.