随笔分类 - C
C
摘要:最近在做对接数据接口,遇到一些问题,在C#后台写请求webapi的接口,但是传递过程中参数如果有特殊字符,传入过去之后又问题。 需要转换一下,通过System.Web.HttpUtility.UrlEncode(userkey), userkey 是个临时参数,这个参数需要System.Web.Ht
阅读全文
摘要:<system.web> <compilation debug="true" targetFramework="4.5" /> <!--<httpRuntime targetFramework="4.5" />--> <httpRuntime targetFramework="4.5" maxReq
阅读全文
摘要:在.NET 环境 报错原因:服务器分X64位和X86系统 1.如果系统是X64系统,就安装 AccessDatabaseEngine_X64.exe 2.如果系统是X86系统,就安装 AccessDatabaseEngine_X86.exe (即32位系统)
阅读全文
摘要:/// /// 汽车商标 获取 /// Redis Key=zgqp315_Redis_TrademarkC_List /// /// public static RedisJsonResult Get_TrademarkC() { //var redisClient ...
阅读全文
摘要:/// /// 汽车车型 获取 /// Redis Key=zgqp315_Redis_ModelNumberC_List /// /// /// public static RedisJsonResult Get_ModelNumberC(int SeriesId) { ...
阅读全文
摘要://销毁Cookies中的数据 if (Request.Cookies["Ticket"] != null) { HttpCookie mycookie; mycookie = Request.Cookies["Ticket"]; TimeSpan ts = new TimeSpan(0, 0, 0
阅读全文
摘要:1.FormCollection collection user.UserId =Convert.ToInt32(collection["UserId"]);/// /// 更新 /// /// /// /// ...
阅读全文
摘要:decimal d = decimal.Round(decimal.Parse( "0.55555 "),2);http://www.cnblogs.com/xiaofengfeng/archive/2010/11/20/1882372.html
阅读全文
摘要:public static string DataTableToJson(DataTable dt) { StringBuilder jsonBuilder = new StringBuilder(); jsonBuilder...
阅读全文
摘要:例如:参数a、list b、ModelId;根据ModelId参数进行筛选 /// /// 根据ModelId筛选查询出对应的数据 /// /// /// /// private List selectL...
阅读全文
摘要:List list_Group = db.Select(exp).Skip((operation.Page - 1) * operation.Limit).Take(operation.Limit).ToList(); List list1 = new List(...
阅读全文