string[] getAllTex = hid_SetValue.Value.ToString().Split('|');
//List<ItemSetValue> item = new List<ItemSetValue>();
List<string> strList = new List<string>();
for (int i = 0; i < getAllTex.Length; i++)
{
strList.Add(getAllTex[i]);
}
foreach (var item in strList)
{
pg.SetKey = item.Split(',')[0];
pg.SetValue = item.Split(',')[1];
pgRep.Add(pg);
}
弄出来了
//List<ItemSetValue> item = new List<ItemSetValue>();
List<string> strList = new List<string>();
for (int i = 0; i < getAllTex.Length; i++)
{
strList.Add(getAllTex[i]);
}
foreach (var item in strList)
{
pg.SetKey = item.Split(',')[0];
pg.SetValue = item.Split(',')[1];
pgRep.Add(pg);
}
弄出来了
解决方案 »
- Page.FindControl和Page.Request.Form有什么区别?
- 从GridView中点击数据行编辑数据,然后点浏览器后退,页面失效的问题
- RadioButtonList的烦心事,散分了
- 后台管理的目录菜单,大家觉得用框架好还是用自定义控件好?
- 在.Net环境里,js问题!
- 还是Cookie的过期时限和安全问题。
- 自定义控件设计时的困惑
- GridView中的SQL语句如何与Session传递过来的值关联?急!!!!
- **page里面的finalize事件什么时候触发阿?谢谢!!
- OLEDBDATAADAPTER问题,请帮忙。
- vs2012中,Mysql使用EF时 的问题
- IIS发布后无法访问别的机器上的ORACLE服务器,
MessageBox.Show(string.Join("-", aa));
西哈::Hashtable 嘻哈 = new 西哈::Hashtable();
for (int a = 0; a < aa.Length - 1; a += 2)
嘻哈.Add(aa[a], aa[a + 1]);
http://blog.csdn.net/xianfajushi/article/details/38982589
我这样写,跑代码的时候会报{"属性“SetKey”是对象的键信息的一部分,不能修改。"} 这是什么问题?
我这样写,跑代码的时候会报{"属性“SetKey”是对象的键信息的一部分,不能修改。"} 这是什么问题?
.Select(x => x.Split(',')).ToDictionary(x => x[0], x => x[1]);