摘要: 表一:表二:已知表一的List,想得到表二的结果:var query = from c in t.AsEnumerable() group c by new { pingming = c.Field... 阅读全文
posted @ 2015-03-31 15:12 小姐,请叫我“序员”好吗 阅读(737) 评论(0) 推荐(0) 编辑
摘要: public partial class Form1 : Form { public Form1() { InitializeComponent(); } List persons... 阅读全文
posted @ 2015-03-17 14:23 小姐,请叫我“序员”好吗 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 把代码写在 window.onload = function () { //js代码 //此处js代码是页面完全加载完之后执行 }即可。例: 阅读全文
posted @ 2015-01-29 15:32 小姐,请叫我“序员”好吗 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 宗旨就是把实例化的类循环放到字典里面 Dictionary dic = new Dictionary(); for (int i = 0; i dic = new Dictionary(); dic.Add(... 阅读全文
posted @ 2015-01-29 10:03 小姐,请叫我“序员”好吗 阅读(214) 评论(0) 推荐(0) 编辑
摘要: public ActionResult ShowLocalizedXML(int id) { string orderName = ""; string xmlString = GetXmlStream(id,out orde... 阅读全文
posted @ 2015-01-16 16:04 小姐,请叫我“序员”好吗 阅读(265) 评论(0) 推荐(0) 编辑
摘要: if($("#FromID").valid()){ $.ajax({ ... 阅读全文
posted @ 2014-12-18 10:38 小姐,请叫我“序员”好吗 阅读(2487) 评论(0) 推荐(0) 编辑
摘要: 输入命令:xsd d:\TDDOWNLOAD\atom-author-link.xsd /c /language:C# /outputdir:d:\含义:将d:\TDDOWNLOAD\atom-author-link.xsd 架构 生成类 语言为C# 输出目录是d:\把xml映射到生成的C#类: ... 阅读全文
posted @ 2014-12-01 16:06 小姐,请叫我“序员”好吗 阅读(1805) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Text;using System.Xml;namespace WebApplication1{ public partial class _Default : System.Web.UI.Page { protected... 阅读全文
posted @ 2014-12-01 15:51 小姐,请叫我“序员”好吗 阅读(142) 评论(0) 推荐(0) 编辑
摘要: [HttpPost] public ActionResult Create(Users user) { ModelState.Remove(“Password”); //加上这句就行了 if (ModelStat... 阅读全文
posted @ 2014-10-28 14:01 小姐,请叫我“序员”好吗 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 接收URL返回的内容 阅读全文
posted @ 2014-10-21 15:00 小姐,请叫我“序员”好吗 阅读(302) 评论(0) 推荐(1) 编辑