简体   繁体   English

商店标签如何进入C#asp.net列表应用程序?

[英]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.

相关问题 如何在应用程序状态(C#ASP.net MVC)中存储列表〜数组 - How do I store List ~ Array in the Application State (C# ASP.net MVC) 如何进入 <select>使用ASP.NET的C#中的代码ID - how to access <select> tag's id in c# using asp.net 如何将文件列表从磁盘存储到C#ASP.NET中的数组中? - How to store a list of files from disk into an array in C# ASP.NET? 如何根据从下拉列表中选择的内容(ASP.NET中的C#)更改标签的输出 - How can I change the output of a label, based on what's selected from a dropdown list (C# in ASP.NET) 如何在ASP.NET C#中向按钮添加跨度标签 - How to add span tag to button in asp.net c# 如何在asp.net/c# datatable中存储超链接? - How to store hyperlink in asp.net/c# datatable? 我如何将值存储到 href 链接多个值 asp.net c# - how can i store values to a href link multiple values in asp.net c# 如何在C#asp.net中拉回DateTime并存储在type = date的文本框中? - How can I pull back DateTime and store in textbox with type=date in C# asp.net? C#ASP.NET无法重新加载Web应用程序 - C# ASP.NET can not reload web application 如何在asp.net C#Web窗体应用程序中基于下拉列表的选定值填充文本框? - How to populate a textbox based on the selected value of a dropdown list in an asp.net c# web forms application?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM