Click here to Skip to main content
11,923,046 members (67,005 online)
Click here to Skip to main content
Add your own
alternative version


35 bookmarked

ASP.NET Tag/Search Cloud Server Control

, 19 Feb 2008 CPOL
Rate this:
Please Sign up or sign in to vote.
A customizable cloud generator written in VB.NET.


This is an ASP.NET server control that you can customize that will generate a keyword/search/tag cloud, given a DataSet. Feel free to change the code to your purposes.




This is the first release version. To view a demo and to download the current release, please see the project homepage.


  • Free source code or component-only.
  • Generated by DataSet (use with XML, databases, or create programmatically etc.).
  • Optional two-color gradient cloud.
  • Various font size units (em, px, pt, %).
  • Max and min font sizes (in Hex format).
  • Sort by a field name, ascending or descending.
  • Customizable URL w/ variables.
  • Customizable link title format w/ variables.
  • Assignable CSS class.
  • Ability to add custom HTML attributes to links (w/ variables).
  • XHTML-valid and CSS-friendly.

Using the code

To use this component, you need to copy the SearchCloud.dll DLL file to your bin directory. Once it is copied, open up the page you plan to implement the Cloud in, and add this to the top:

<%@ Register assembly="SearchCloud" namespace="IntrepidStudios.SearchCloud" tagprefix="IS" %>

Then, implement the cloud by using this tag:

<is:cloud id="cloud1" runat="server" />

Before using it, you need to assign it a DataSource and some field names. To do so, open the code-behind of your page and use this code to activate the control:

Dim ds As New DataSet

Cloud1.DataIDField = "keyword_id"
Cloud1.DataKeywordField = "keyword_value"
Cloud1.DataCountField = "keyword_count"
Cloud1.DataURLField = "keyword_url"

Cloud1.DataSource = ds

You have to have a DataSet with keyword data to be able to use the control. This can come from a database, XML file, or anything that can be translated into a DataSet.


For full details and an up-to-date documentation, please see the project homepage.


  • [2-15-08] - Added to CodeProject.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

CEO Intrepid Studios, Inc.
United States United States
Kamran Ayub is a web developer and designer for Intrepid Studios, Inc. He has experience in ASP.NET for almost 4 years and is well versed in XHTML, CSS, and other web technologies.

You may also be interested in...

Comments and Discussions

QuestionPostback Pin
madrianr12-Nov-09 20:31
membermadrianr12-Nov-09 20:31 
QuestionSome problems occur to me Pin
blue300024-Aug-08 15:29
memberblue300024-Aug-08 15:29 
GeneralRight on! Pin
MaxGuernsey18-Feb-08 12:54
memberMaxGuernsey18-Feb-08 12:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.151125.3 | Last Updated 19 Feb 2008
Article Copyright 2008 by SubKamran
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid