摘要: var collection = charts.OrderByDescending(item = item.Value).Take(10).ToList(); Dictionarystring, int dictionary = new Dictionarystring, int(); foreach (var item in collection) { dictionary.Add(item.Key, item.Value); } 阅读全文
posted @ 2010-12-21 17:19 Kong, Star 阅读(278) 评论(0) 推荐(1) 编辑
摘要: //获取角色的ID function getRoleID(checkBoxName) { var selectRoleID = ""; $("input[name='" + checkBoxName + "']").each( function() { if ($(this).attr('checked') == true) { selectRoleID += $(this).val() + ","; } } ); return selectRoleID;}$("input[type='checkbox']:checked").attr("value"); 阅读全文
posted @ 2010-12-14 09:57 Kong, Star 阅读(423) 评论(0) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->//写入文件 FileStream fs =new FileStream(@"E:\TK.txt", FileMode.Create);StreamWriter sw =new StreamWriter(fs, System.Text.Encoding.UTF8);sw.Write(this.TextBox1.Text);sw.Close();sw.Dispose();f 阅读全文
posted @ 2010-11-27 23:46 Kong, Star 阅读(197) 评论(0) 推荐(1) 编辑