TagCloud from Code Behind with SqlDataReader

Oct 12, 2011 at 11:39 AM

This is an excellent tool.  Well done and thanks.

Can someone help me with a valid object to replace the parameter in red ?

I'm building the list of strings from a SqlDataReader and can substitute any valid object (Arrays, ArrayList, DataSet) but can't seem to get the syntax right .

Any thoughts would be much appreciated.

 

HtmlGenericControl div = new HtmlGenericControl("div");

div.InnerHtml = new TagCloud.TagCloud(new[] { "C#", "C#", "C#", "ASP.NET", "ASP.NET", "VB.NET" }, TagCloud.TagCloudGenerationRules.Default).ToString();

Controls.Add(div);