02-23-05 10:59 PM
Thanks. For someone new to MCMS, I am very much
appreciative of your help.
>-----Original Message-----
>Hi
>
>Here's some sample code that may help:
>
>private void WalkTree(Channel c)
>{
> foreach(ChannelItem ci in c.AllChildren)
> {
> if(ci is Posting)
> {
> Posting p = ci as Posting;
> //Process posting
> }
> else if(ci is Channel)
> {
> Channel cc = ci as Channel;
> //Process sub channel
> //If you need to iterate through
>the tree recursively, uncomment the line below
> //WalkTree(cc);
> }
> }
>}
>
>regards
>Mei Ying
>---
>Blog: http://meiyinglim.blogspot.com
>Book: http://www.packtpub.com/book/mcms
>Contact: meiyinglim@hotmail.com
>---
>Channel type then
>message
this?[vbcol=seagreen]
>.
>
[ Post a follow-up to this message ]
|