Reply
Tag Cloud in ASP.NET?
Old 01-22-2006, 08:23 PM Tag Cloud in ASP.NET?
Junior Talker

Posts: 2
Can anyone tell me a general technique for how I would go about generating a tag cloud on my website? This cloud would be based on tags that users have input into my database.

Does anyone have any good resources that you can point me too? or sample ASP.NET scripts for doing this?

Thanks,

Dave
kingdavid is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 01-23-2006, 07:57 AM
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
What do you mean by 'tag'? 'tag' is a very generic word and could mean a lot of things...
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"
Inoxia Pyrotechnics Supplies | Surrey Angels Cheerleading Squad
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Old 01-23-2006, 02:14 PM
Junior Talker

Posts: 2
A "Tag Cloud" is a new, Web 2.0 way of displaying categories of data on your website, popularized by Flickr (http://www.flickr.com/photos/tags/). Take a look at Wiki (http://en.wikipedia.org/wiki/Tag_cloud) for a description and links to many examples, such as http://www.43things.com/ and http://del.icio.us/tag/ .
kingdavid is offline
Reply With Quote
View Public Profile
 
Old 04-20-2006, 05:05 AM Re: Tag Cloud in ASP.NET?
Junior Talker

Posts: 1
Hi Dave,

the reply is a little late but whatever:

I have a working ASP.NET tag cloud sample on my blog. You can download the sample code and adapt it to your needs.

Hope it helps!

Stefan
sbroenne is offline
Reply With Quote
View Public Profile
 
Old 04-15-2008, 06:07 PM Re: Tag Cloud in ASP.NET?
Junior Talker

Posts: 1
Name: Bob
My company recently integrated a cloud tag into our software. The cloud tag appears within a styled div to give it a border and titlebar. On some of our pages, the tags overflow outside of the div, rather than wrapping. Any idea what may cause this?
bobbo0521 is offline
Reply With Quote
View Public Profile
 
Old 04-15-2008, 07:09 PM Re: Tag Cloud in ASP.NET?
Learning Newbie's Avatar
Moderator

Latest Blog Post:
My Wish for Webmaster Talk
Posts: 5,181
Name: John Alexander
Quote:
Originally Posted by kingdavid View Post
Does anyone have any good resources that you can point me too? or sample ASP.NET scripts for doing this?
Without knowing how the tags are stored and assigned in your database, you won't find terribly applicable code samples.

First you need a list of all your tags, and how often each one is used

Select Tag, Count_Big(*) From Some_Table Where Some_Condition_Is_Met

Then you need to normalize the range somehow, which again is domain specific. But for example if you have 3 tags, you've used Tag A 14 times, Tab B 9 times, and you've used Tag C a whopping 1,831,726 times, that isn't going to work.

Finally, write out the text of each tag with a font size style attribute based on however you normalize your range of use counts.
__________________
4 ways to improve the lives of the "bottom billion"

"HEY YOU KIDS GET OFF MY LAWN!" -John McCain
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Old 05-11-2008, 06:44 PM Re: Tag Cloud in ASP.NET?
vividearth's Avatar
Experienced Talker

Posts: 32
Location: London, UK
I've done this a few times and would add that a tag cloud is a visual tool to quickly draw the eye to the more common tags therefore it can be more useful to soft code the break points in your config file or a database settings table. So, rather than using maths logic to decide when a tag hits the next level, you decide and can change at runtime as your data set changes. This means that rather than getting into code to make your algorithm produce the desired visual effect (and maintain it as the data changes) you can just maintain a few settings and tweak quickly to get your message across.

v
vividearth is offline
Reply With Quote
View Public Profile Visit vividearth's homepage!
 
Reply     « Reply to Tag Cloud in ASP.NET?
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.14385 seconds with 12 queries