[英]How can a store tag's into a list C# asp.net application?
I want to store a list of tags so that i could later on use it in a tag cloud. 我想存储标签列表,以便以后可以在标签云中使用它。
The list can be hard coded and does not need to be populated as the application is running, the list can be edited when ever i would like to add more tags. 该列表可以是硬编码的,并且不需要在应用程序运行时填充。只要我想添加更多标签,就可以编辑该列表。
A tag is a link correct? 标签是链接正确吗? how would i save the link as a word? 我如何将链接保存为单词?
Could someone please show me how i can do this. 有人可以告诉我我该怎么做。
Thanks in advance :D 提前致谢
You could use a Dictionary. 您可以使用字典。
Dictionary<string, string> a = new Dictionary<string, string>();
a.Add("tag", "url");
Isn't this what you want? 这不是你想要的吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.