Microsoft Content Management Server - Events in cached controls

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > August 2005 > Events in cached controls





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Events in cached controls
Chandy

2005-08-23, 5:53 pm

Hi all,

Not strictly speaking a CMS question but..just incase this is a
CMS-specific problem.

When I added the OutputCache directive to a usercontrol that containes
a button, the click event for the button no longer fires. The diective
is set to:

<%@ OutputCache Duration="86400" VaryByParam="None"
VaryByCustom="CMSControl" %>

The control never changes, it's just a text box and a button to do a
search. If I remove the directive, the button behaves as it should.

Any ideas?

Chandy

Stefan [MSFT]

2005-08-23, 5:53 pm

Hi Chandy,

does not sound like a MCMS related question.
What happens if you are using such a control in a normal ASP.NET web
application?

Cheers,
Stefan

--
This posting is provided "AS IS" with no warranties, and confers no rights

New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
----------------------


"Chandy" <chandy@totalise.co.uk> wrote in message
news:1124804791.800420.212090@f14g2000cwb.googlegroups.com...
> Hi all,
>
> Not strictly speaking a CMS question but..just incase this is a
> CMS-specific problem.
>
> When I added the OutputCache directive to a usercontrol that containes
> a button, the click event for the button no longer fires. The diective
> is set to:
>
> <%@ OutputCache Duration="86400" VaryByParam="None"
> VaryByCustom="CMSControl" %>
>
> The control never changes, it's just a text box and a button to do a
> search. If I remove the directive, the button behaves as it should.
>
> Any ideas?
>
> Chandy
>



Chandy

2005-08-23, 5:53 pm

Hi Stefan,

Can't be compared exactly because CMSControl is not a valid attribute
value? Plus this is using CmsHttpApplication of course. I will knock
something together and give it a try though. Just wanted to check it
wasn't something to do with the Cms that anyone knew about.

Chandy


Stefan [MSFT] wrote:[vbcol=seagreen]
> Hi Chandy,
>
> does not sound like a MCMS related question.
> What happens if you are using such a control in a normal ASP.NET web
> application?
>
> Cheers,
> Stefan
>
> --
> This posting is provided "AS IS" with no warranties, and confers no rights
>
> New to MCMS?
> Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
> ----------------------
>
>
> "Chandy" <chandy@totalise.co.uk> wrote in message
> news:1124804791.800420.212090@f14g2000cwb.googlegroups.com...

Chandy

2005-08-23, 5:53 pm


Hi again,

Yep, exactly the same with a regular asp.net app!!!!

Better do some googling..cheers.

Chandy

Chandy wrote:[vbcol=seagreen]
> Hi Stefan,
>
> Can't be compared exactly because CMSControl is not a valid attribute
> value? Plus this is using CmsHttpApplication of course. I will knock
> something together and give it a try though. Just wanted to check it
> wasn't something to do with the Cms that anyone knew about.
>
> Chandy
>
>
> Stefan [MSFT] wrote:

Chandy

2005-08-23, 5:53 pm

Yep, FYI it seems that OutputCache is really
FromNowOnJustTreatThisAsAFragmentOfHtmlF
orThisLong, i.e., aspnet
ignores all the events after it's cached, pants.

Though I haven't actually found that documented anywhere yet, just a
single response from a MS MVP on a group somewhere.

Chandy

Stefan [MSFT]

2005-08-23, 5:53 pm

Hi Chandy,

you are right.
It would not be the same but just check if the same happens with a similar
cached control.

Cheers,
Stefan

--
This posting is provided "AS IS" with no warranties, and confers no rights

New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
----------------------


"Chandy" <chandy@totalise.co.uk> wrote in message
news:1124809655.151473.126930@g47g2000cwa.googlegroups.com...
> Hi Stefan,
>
> Can't be compared exactly because CMSControl is not a valid attribute
> value? Plus this is using CmsHttpApplication of course. I will knock
> something together and give it a try though. Just wanted to check it
> wasn't something to do with the Cms that anyone knew about.
>
> Chandy
>
>
> Stefan [MSFT] wrote:
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com