上一页 1 ··· 3 4 5 6 7
摘要: public static class StringExtensions { /// /// 截取等宽中英文字符串 /// /// 要截取的字符串 /// 要截取的中文字符长度 /// 截取后后追加的字符... 阅读全文
posted @ 2015-05-28 10:53 mysuper 阅读(500) 评论(0) 推荐(0)
摘要: 若你真的需要一个nvarchar(max)的sql存储空间时,记得增加.CustomType("StringClob")Demo:Map(x=>x.ContentManifest).CustomType("StringClob").CustomSqlType("nvarchar(max)");Map... 阅读全文
posted @ 2015-05-27 17:56 mysuper 阅读(484) 评论(0) 推荐(0)
摘要: 一,内置的过滤器1,uppercase,lowercase大小转换{{"lowercapstring"|uppercase}}//结果:LOWERCAPSTRING{{"TANKisGOOD"|lowercase}}//结果:tankisgood|这里的竖线是一种管道功能,如果对linux比较熟悉的... 阅读全文
posted @ 2015-05-27 17:35 mysuper 阅读(156) 评论(0) 推荐(0)
摘要: 浏览器识别版本方法//使用说明返回的是一个对象{"browser":"[IE]...","version":"11.0"} function identifyBrowser() { var userAgent = navigator.userAgent, rMsie = /(msie\s|tride... 阅读全文
posted @ 2015-05-26 15:45 mysuper 阅读(201) 评论(0) 推荐(0)
摘要: --post 请求public static string PostMsg(Guid orgid, int page, int rows) { System.Net.WebClient client = new System.Net.WebClient(); string postData = "{... 阅读全文
posted @ 2015-05-26 15:42 mysuper 阅读(247) 评论(0) 推荐(0)
摘要: /// /// 从流获取缩略图 /// /// private void CreateFavoriteThumb(string filePathWithFileName) { if (Request.InputStream == null || Request.InputStream.Leng... 阅读全文
posted @ 2015-05-26 15:39 mysuper 阅读(199) 评论(0) 推荐(0)
摘要: public string UploadPhotoUrl(HttpPostedFileBase uploadFile) { MessageResult result = new MessageResult(); string domain = this.TheVisitorInfo.DomainUn... 阅读全文
posted @ 2015-05-26 15:38 mysuper 阅读(167) 评论(0) 推荐(0)
摘要: System.IO.Stream s = System.Web.HttpContext.Current.Request.InputStream; int count = 0; byte[] buffer = new byte[1024]; StringBuilder builder = new S... 阅读全文
posted @ 2015-05-26 15:35 mysuper 阅读(195) 评论(0) 推荐(0)
摘要: /// /// 分析 url 字符串中的参数信息 /// /// 输入的 URL /// 输出 URL 的基础部分 /// 输出分析后得到的 (参数名,参数值) 的集合 public static void ParseUrl(string url, out string baseUrl, ou... 阅读全文
posted @ 2015-05-26 15:33 mysuper 阅读(1046) 评论(0) 推荐(1)
上一页 1 ··· 3 4 5 6 7