Microsoft Content Management Server - MapChannelToHostHeaderEnabled

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > July 2006 > MapChannelToHostHeaderEnabled





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 MapChannelToHostHeaderEnabled
Göran Tänzer

2006-07-27, 1:21 pm

Hi,

private bool MapChannelToHostHeaderEnabled(CmsContext
ctx)
{
return (ctx.RootChannel.UrlModePublished == "http://Channels/");
}

http://support.microsoft.com/kb/887530

i have some problems with this function. When used in authoring mode it
fails becaus the RootChannel.UrlModePublished is
"http://Channels/?wbc_purpose=Basic&WBCMODE=PresentationUnpublished"

Is it "save" to change it to
return (ctx.RootChannel.UrlModePublished.StartsWith("http://Channels/");
or could this fail in some situations?

Regards

göran
Stefan [MSFT]

2006-07-27, 1:21 pm

Hi Göran,

yes it is save to use this method.

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
Check out the new book as well: Advanced MCMS development:
http://tinyurl.com/8ugwj
----------------------


"Göran Tänzer" <GranTnzer@discussions.microsoft.com> wrote in message
news:F736DA20-F5A9-4492-8BB1-D90A7E79D5A9@microsoft.com...
> Hi,
>
> private bool MapChannelToHostHeaderEnabled(CmsContext
ctx)
> {
> return (ctx.RootChannel.UrlModePublished == "http://Channels/");
> }
>
> http://support.microsoft.com/kb/887530
>
> i have some problems with this function. When used in authoring mode it
> fails becaus the RootChannel.UrlModePublished is
> "http://Channels/?wbc_purpose=Basic&WBCMODE=PresentationUnpublished"
>
> Is it "save" to change it to
> return (ctx.RootChannel.UrlModePublished.StartsWith("http://Channels/");
> or could this fail in some situations?
>
> Regards
>
> göran



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com