2013年4月21日
摘要: using System; using System.Data; using System.Xml; using System.Data.SqlClient; using System.Collections; using System.Configuration;namespace BookDAL { /// <summary> /// SqlServer数据访问帮助类 /// </summary> public sealed class SqlHelper { #region 私有构造函数和方法 private SqlH... 阅读全文
posted @ 2013-04-21 23:58 朝着 阅读(209) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Text;using System.Collections;using System.Data;using System.Data.SqlClient;using System.Configuration;namespace HelloWinForm.DBUtility{ class SQLHelper { #region 通用方法 // 数据连接池 private SqlConnection con; ///... 阅读全文
posted @ 2013-04-21 23:52 朝着 阅读(222) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 图片下载 /// </summary> /// <param name="ordPath"></param> /// <param name="newPath"></param> public void ImgDownLoadFile(string ordPath, string newPath) { var newWebClient = new System.Net.WebClient(); newWebClient.Downl... 阅读全文
posted @ 2013-04-21 23:33 朝着 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 1:private bool ImportSubjectQuesData(int bankId, int categoryId, int curpage, int pagesize){string postData = "bankid=" +System.Web.HttpUtility.UrlEncode(bankId.ToString(), System.Text.Encoding.ASCII);postData += "&categoryid=" +System.Web.HttpUtility.UrlEncode(categoryId.ToS 阅读全文
posted @ 2013-04-21 23:29 朝着 阅读(203) 评论(0) 推荐(0) 编辑
摘要: MatchCollection ma = Regex.Matches(contt, @"([_]+\d+[_]+)|([_]+【小题\d+】[_]*)|(【小题\d+】)", RegexOptions.Singleline | RegexOptions.Multiline | RegexOption... 阅读全文
posted @ 2013-04-21 23:20 朝着 阅读(146) 评论(0) 推荐(0) 编辑
摘要: .NET下几种常见的解析JSON方法主要类命名空间限制内建LINQ支持DataContractJsonSerializerSystem.Runtime.Serialization.Json通用否JavaScriptSerializerSystem.Web.Script.Serialization只能在Web环境使用否JsonArray、JsonObject、JsonValueSystem.Json只能在Silverlight中使用是JsonConvert、JArray、JObject、JValue、JPropertyNewtonsoft.Json通用是实体类: [DataContract... 阅读全文
posted @ 2013-04-21 21:58 朝着 阅读(166) 评论(0) 推荐(0) 编辑
摘要: var _curmenu = '{"menus": [{"menuid":"1","menuname":"系统管理","url":"../Html/List.htm","icon":"img","menus":[{"menuid":"001","menuname":"栏目管理","url": 阅读全文
posted @ 2013-04-21 21:29 朝着 阅读(238) 评论(0) 推荐(0) 编辑