473,386 Members | 1,962 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,386 software developers and data experts.

Substitution control works incorrect

In our application consisting of several custom user controls we want one of
these controls to be excluded from the page cache. For this I tried to use
the substitution control for output cache substitution. But this control
renders at the top of the page before the <HTMLtag, just like using
response.write. When I turn off the page cache, it works correctly. What
could be the reason?
Sep 19 '08 #1
2 1162
Have you looked at Partial Page Output Caching? You can avoid caching on the
parts of the page that contain the controls you do not wish to cache. Less
kludgy than substitution.

http://msdn.microsoft.com/en-us/library/h30h475z.aspx

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://feeds.feedburner.com/GregoryBeamer#

or just read it:
http://feeds.feedburner.com/GregoryBeamer

********************************************
| Think outside the box! |
********************************************
"Peter" <Pe***@discussions.microsoft.comwrote in message
news:31**********************************@microsof t.com...
In our application consisting of several custom user controls we want one
of
these controls to be excluded from the page cache. For this I tried to use
the substitution control for output cache substitution. But this control
renders at the top of the page before the <HTMLtag, just like using
response.write. When I turn off the page cache, it works correctly. What
could be the reason?
Sep 19 '08 #2
I thought about this, but I found out that I can't use this. When page cache
is on and the caching time is longer than the control caching time, the page
cache time has preference (and page cache must be on).
"Cowboy (Gregory A. Beamer)" wrote:
Have you looked at Partial Page Output Caching? You can avoid caching on the
parts of the page that contain the controls you do not wish to cache. Less
kludgy than substitution.

http://msdn.microsoft.com/en-us/library/h30h475z.aspx

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://feeds.feedburner.com/GregoryBeamer#

or just read it:
http://feeds.feedburner.com/GregoryBeamer

********************************************
| Think outside the box! |
********************************************
"Peter" <Pe***@discussions.microsoft.comwrote in message
news:31**********************************@microsof t.com...
In our application consisting of several custom user controls we want one
of
these controls to be excluded from the page cache. For this I tried to use
the substitution control for output cache substitution. But this control
renders at the top of the page before the <HTMLtag, just like using
response.write. When I turn off the page cache, it works correctly. What
could be the reason?

Sep 19 '08 #3

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

Similar topics

6
by: Paddy | last post by:
Hi, I got tripped up on the way eval works with respect to modules and so wrote a test. It seems that a function carries around knowledge of the globals() present when it was defined. (The...
14
by: Malcolm | last post by:
Hi, I have the following which fails with "disagreement in number of macro arguments" when compiling with Imagecraft ICCAVR. Has anyone got any ideas - its not vital but would make the code a...
18
by: james | last post by:
Hi, I am loading a CSV file ( Comma Seperated Value) into a Richtext box. I have a routine that splits the data up when it hits the "," and then copies the results into a listbox. The data also...
5
by: Murali | last post by:
In Python, dictionaries can have any hashable value as a string. In particular I can say d = {} d = "Right" d = "Wrong" d = "test" In order to print "test" using % substitution I can say
7
by: MtiPaulo | last post by:
I know FoxPro has excellent macro substitution but I am trying to find through MS Access. Wondering if MS Access has Macro Substitution? I will give you my basic example. In FoxPro Language...
2
by: aaron | last post by:
Hi All, I have a custom web control which works perfectly. Its just a tabcontrol to spit out navigation tabs, it inherits from System.Web.UI.WebControls.WebControl In web page design view,...
0
by: vespaboy | last post by:
Hi Is it possible to use the Substitution control to specify that the LoginView control is exempt from page caching? I use the loginview control on all pages to display user status but i'd...
2
by: Ken Fine | last post by:
I want to add the security question and answer security feature to the ChangePassword control. I am aware that this functionality is built into the PasswordRecovery tool. I have implemented the...
0
by: =?Utf-8?B?UGV0ZXI=?= | last post by:
In my application I am trying to implement a substitution control. It works well unless the render method is overriden to change the HTML-output. Does anybody know why this happens, and how to get...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.