templates and usercontrols - URGENT
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
templates and usercontrols - URGENT

 
Post new topic   Reply to topic    Windows Server Forum Index -> CMS Server
Author Message
Kimberley C
Guest





Posted: Sat Jan 08, 2005 2:11 am    Post subject: templates and usercontrols - URGENT Reply with quote

Hi,

On my template I have 2 user controls. Depending what the CacheVersion() is
equal to I would display the appropriate user control. However, I have
noticed that the users controls are call before the CacheVersion check. Does
any one know a solution or work around for this.

<% if CacheVersion() then %>
<uc1:bodytextnavbody id="BodyNav1" runat="server"></uc1:bodytextnavbody>
<% else %>
<uc1:cache id="Cache1" runat="server"></uc1:cache>
<% end if %>

Thanks

Kimberley
Back to top
Stefan [MSFT]
Guest





Posted: Sat Jan 08, 2005 7:46 am    Post subject: Re: templates and usercontrols - URGENT Reply with quote

Hi Kimberley,

that is not a MCMS related questions.
You should post this to an ASP.NET related newsgroup.

Cheers,
Stefan.


"Kimberley C" <KimberleyC@discussions.microsoft.com> wrote in message
news:DC847563-0CE0-4305-BFD7-C6C7E2272F4B@microsoft.com...
Quote:
Hi,

On my template I have 2 user controls. Depending what the CacheVersion()
is
equal to I would display the appropriate user control. However, I have
noticed that the users controls are call before the CacheVersion check.
Does
any one know a solution or work around for this.

% if CacheVersion() then %
uc1:bodytextnavbody id="BodyNav1" runat="server"></uc1:bodytextnavbody
% else %
uc1:cache id="Cache1" runat="server"></uc1:cache
% end if %

Thanks

Kimberley
Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> CMS Server All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB