Maybe you know the free source code of a tag-cloud control for ASP.Net from codeproject. A really nice control, which creates you a word-cloud known from del.icio.us and others.
If you use this tag-cloud from codeproject, you may run into troubles, if you want to break lines.
I looked into the source code and found out the misstake.
What to do, to repair the Tag-Cloud Line-Brake Bug:
- Open the source-project VRK.Controls
- Open now the file "Cloud.cs"
- Go to line "366" and change the code to the following
- {
- this.Controls.Add(a);
- this.Controls.Add(new LiteralControl(" "));
- index += 1;
- }
- Now build the project and use the new .dll for your own project
What was the problem?
If the engine renders the control, it of course makes a space between every control visually, but the html text is without any space. Maybe some browsers are not able to make line-brakes without a real space... So now it works great!
Hope it helps
