随笔分类 -  Asp.Net学习笔记

摘要:1. 窗体设置好的Colums 集合 DataGridView.AutoGenerateColumns = false; List<CollectConfig> CollectList = colbll.GetList(); DataGridView.DataSource = CollectList; 注意,columns 的属性DataPropertyName 需要与数据库字段对应。2. 如果窗体没有设置,代码写也可以 CollectList.Add(new CollectConfig { CCDesc = CollectList[0].CCName, CCID = Collec 阅读全文
posted @ 2013-05-13 17:48 kerwin021 阅读(283) 评论(0) 推荐(0)
摘要:sql 模糊查询传递参数 阅读全文
posted @ 2013-05-13 00:05 kerwin021 阅读(987) 评论(0) 推荐(0)
摘要:SQLite 在Windows Server 2008 部署问题FAQ汇总 阅读全文
posted @ 2013-05-12 12:19 kerwin021 阅读(2124) 评论(0) 推荐(0)
摘要:publicpartialclasswx_wxapi:System.Web.UI.Page{conststringToken="*****"; //你的tokenprotectedvoidPage_Load(objectsender,EventArgse){stringpostStr="";//Valid();if(Request.HttpMethod.ToLower()=="post"){Streams=System.Web.HttpContext.Current.Request.InputStream;byte[]b=newbyt 阅读全文
posted @ 2013-05-08 12:35 kerwin021 阅读(497) 评论(0) 推荐(0)
摘要:/// <summary> /// Code转成中文 /// </summary> /// <param name="FilePath">xml文件路径</param> /// <param name="RootNode">根节点</param> /// <param name="key">关键字</param> /// <returns></returns> public string GetXml(string 阅读全文
posted @ 2013-04-11 17:29 kerwin021 阅读(116) 评论(0) 推荐(0)