Dave Burke : Freelance .NET Web Developer specializing in Online Communities

Chameleon Minute: Let the Slobber Flow Freely

I've been so busy coding with Community Server lately that I haven't taken time to blog about it.  I've been a nasty troll, a leech, a bottom feeder, an information consumer!   But I had to stop what I was doing to share a Chameleon Minute with you.  Hopefully it won't be the last.

They say a picture is worth a thousand bits of slobber dripping down from the corners of your mouth and onto your chin.  If that old saying is correct, then grab your handkerchief and check out the screenshots below.  The scenario is that I have a shared area on my CS2007 site that displays content dynamically based on a custom data object.  I want to display a certain image based on that object's MyAppKey  (not the real property name. :-)

First notice the circled Chameleon control, for our purposes the CSControl:Image control. It exposes a number of properties, one of which is the ImageUrl.  In the page OnLoad() I create the object (still in prototype mode if you're questioning the logic), pull the MyAppKey string property and set the imageUrl filename dynamically.  AND ALL WITH INTELLISENSE as you can plainly see.  Wow!!!

You say you don't know which Chameleon control to use?  Check out slobber smackin' screenshot #2.

 

 

Comments (2) | Post RSS RSS comment feed

Posted on 3/21/2007 9:04:14 AM by Dave Burke
Categories: Community Server
Tags:

Related posts

Comments (2) -

3/21/2007 8:21:22 PM Permalink

Dave this is great stuff! Smile

Can you show us a screen shot of the finished product from your example?

daveburke |

3/21/2007 8:35:56 PM Permalink

Hey, Wiz!  Actually, I can't, since the site is for a client and it cannot be shown.  I even changed the code examples here so it wouldn't indicate what the site is about.  But the finished product for this example is essentially a number of "sub-communities" with each having their own splash page based on the community AppKey, using the Chameleon CSControl:Image and doing the dynamic display on the webpage as shown here.

daveburke |


Powered by BlogEngine.NET 2.0.0.36
Theme by Dave Burke