Hi all,
I would consider myself a fairly intermediate level programmer in C#, having
come from an ASP background, though there are still big gaps in my
knowledge.
One such gap is writing stuff such as...
HttpContext.Current.Application.Contents etc. etc. etc.
Now, there are two parts to this.
1. Say I want to write something like...
MyApp
In my app, I have a class, ThisClass
This would give me something like
MyApp.ThisClass
Next, as the example httpcontext above, how do I go further, such as
MyApp.ThisClass.NextLevel.DeeperLevel etc.
Also, what do you call this? (All the dots, and the intellisense picking up
sub items.)
2. In the HttpContext item above, when I get to Contents and type a dot, I
get Contents, then another dot I get Contents again (seemingly endless.)
How can I do that? What is this called?
Anyone have any URLs that area fairly straightforward to read and use?
There are other areas that I am lacking on, such as inheritance,
multithreading, etc. but they will save for another time.
The reason I am asking is that I want to construct a menu system, similar to
the way Microsoft CMS builds it... This looks like....
CmsHttpContext.Current.Channel.Url
CmsHttpContext.Current.Channel.Name
CmsHttpContext.Current.Channel.Parent.Parent.Paren t.Url
etc. etc. (note how the last example has parent.parent.parent (ad
infinitum).
Thanks for any help...
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available