Microsoft Content Management Server - CMS2001 - Get Channel Object

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > April 2006 > CMS2001 - Get Channel Object





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 CMS2001 - Get Channel Object
NickCowley

2006-04-28, 7:16 am

Hello

Long time since I had to do anything on CMS 201, so sorry for the silly
question, but.....

I want to set the Channel object to a specific channel. Presume that I need
to search/find this channel.

Anyone have code example/syntax for this?

Many thanks in advance.

Kind Regards

Nick
Stefan [MSFT]

2006-04-30, 7:15 am

Hi Nick,

you need to use something like this:

Autosession.Searches.GetByPath("/Channels/Site1/ChannelName")

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
----------------------


"NickCowley" <NickCowley@discussions.microsoft.com> wrote in message
news:8FCAD13B-A47B-43D0-ADC2-169FA7368D12@microsoft.com...
> Hello
>
> Long time since I had to do anything on CMS 201, so sorry for the silly
> question, but.....
>
> I want to set the Channel object to a specific channel. Presume that I
> need
> to search/find this channel.
>
> Anyone have code example/syntax for this?
>
> Many thanks in advance.
>
> Kind Regards
>
> Nick



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com