Microsoft Content Management Server - hiding text in htmltextcontrol

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > June 2004 > hiding text in htmltextcontrol





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 hiding text in htmltextcontrol
Rea Peleg

2004-06-20, 11:04 pm

Hi all
I want to hide text in htmlplaceholder when its page is published.
By checking the 'CmsHttpContext.Current.Mode' property i can tell when that
page is published.

When this is the case i set controls visibility to false, but it still shows
as long as the site is in edit mode
(inside web auther).
Only when switching to live site mode the control disappears.

Is there a way to hide it while in edit mode as well (and how can i check
the site's mode in code)??

Thank for your attention

Rea


Stefan [MSFT]

2004-06-20, 11:04 pm

Hi Rea,

check out this placeholder control:
http://www.gotdotnet.com/Community/...c6-476d1814e141

Cheers,
Stefan.

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

MCMS FAQ:
http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm
MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
MCMS Sample Code:
http://www.gotdotnet.com/community/...t+S
erver

MCMS Whitepapers and other docs:
http://blogs.msdn.com/stefan_gossne...2/07/41859.aspx
--------------------------------


"Rea Peleg" <rea_p@afek.co.il> wrote in message
news:u8OKO1HVEHA.3944@TK2MSFTNGP12.phx.gbl...
> Hi all
> I want to hide text in htmlplaceholder when its page is published.
> By checking the 'CmsHttpContext.Current.Mode' property i can tell when

that
> page is published.
>
> When this is the case i set controls visibility to false, but it still

shows
> as long as the site is in edit mode
> (inside web auther).
> Only when switching to live site mode the control disappears.
>
> Is there a way to hide it while in edit mode as well (and how can i check
> the site's mode in code)??
>
> Thank for your attention
>
> Rea
>
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com