Events in cached controls
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Content Management Server > Events in cached controls




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Events in cached controls  
Chandy


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-23-05 10: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






[ Post a follow-up to this message ]



    Re: Events in cached controls  
Stefan [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-23-05 10: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
>







[ Post a follow-up to this message ]



    Re: Events in cached controls  
Chandy


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-23-05 10: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: [url]http://tinyurl.com/6zj44[/url
]
> ----------------------
>
>
> "Chandy" <chandy@totalise.co.uk> wrote in message
> news:1124804791.800420.212090@f14g2000cwb.googlegroups.com... 






[ Post a follow-up to this message ]



    Re: Events in cached controls  
Chandy


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-23-05 10: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: 






[ Post a follow-up to this message ]



    Re: Events in cached controls  
Chandy


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-23-05 10: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






[ Post a follow-up to this message ]



    Re: Events in cached controls  
Stefan [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-23-05 10: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: 
>







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:54 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register