c#中如何对hashtable取其某个特定键的值,并输出到页面的某个表格的指定位置?
问一个比较菜的问题:
c#中如何对hashtable取其某个特定键的值,并输出到页面的某个表格的指定位置?
我把代码写在了后台,比如:
Hashtable thtest=new Hashtable();
thtest.Add("str1","HelloWord!");
thtest.Add("str2","你好!");
thtest.Add("str3","good");
.
.
.
Hashtable中有很多不同的键和值,那我如何只把键“str1”的值输出到页面的某个表格的指定位置?如果是在html页面中直接调用,那应该如何调用其值并显示出来?