11 2015 档案
摘要:生成如:2015-10-25T12:12:12格式的时间 DateTime.Now.ToString("s")非asp.net mvc环境下对url编码 (HttpUtility.UrlEncoding)foreach中取当前项的索引简单地使用indexOf函数就可以获取到索引值,例如: for...
阅读全文
摘要:如图:源码下载路径如下http://files.cnblogs.com/files/gaocong/bootstrap_slect_%E5%A4%9A%E9%80%89.rar
阅读全文
摘要:使用方法:先把mvcpager.dll引用加入mvc项目 下载路径在本文末尾前台代码前台:@{ Layout = null;}@using Webdiyer.WebControls.Mvc@model PagedList Index @...
阅读全文
摘要:select (floor(days/7)*5+days%7 -case when 6 between wd and wd+days%7-1 then 1 else 0 end -case when 7 between wd and wd+days%7-1 then 1 else 0 end )...
阅读全文
摘要:function getKey(event) { if (event.keyCode == 13) { alert("我是回车键"); } }
阅读全文
摘要:使用 前台js $.yms_Dialog("edit_dialog", "/DataEntering/EditView?id=" + id, function () { $("#data_type_edit").val($("#data_type_edit").attr("gc")); }); 部分
阅读全文
摘要:json.net转json时生成的时间格式是这种 2015-11-14T06:59:59+08:00格式化为这种2015-11-14后台代码:IsoDateTimeConverter timeFormat = new IsoDateTimeConverter(); timeFormat.DateTi...
阅读全文
摘要:js中以键值对的形式当枚举var Penum= { B: "姓名", C: "所属居委", D: "证件号", E: "性别", F: "生日", G: "籍贯", H: "居住地址", ...
阅读全文
摘要:连接字符串: return new SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["WebJakeCS"].ConnectionString); return new SqlConnection(S
阅读全文
摘要://div出滚动条://滚动条始终处于最下面。聊天程序需要$("#discussion").bind('DOMNodeInserted', function(e) { this.scrollTop=this.scrollHeight;});
阅读全文
摘要:html页面样式#loading-mask { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 20000; background-color:#000; filter:alpha(opacity=50...
阅读全文
摘要:记录下。。唉。。。。java代码:导入这个commons-codec-1.8.jar (下载链接: http://files.cnblogs.com/files/gaocong/jar%E5%8C%85.rar) java后台方法InputStream in = null; byte[...
阅读全文
摘要://把流转化为文件 public static void StreamToFile(Stream stream, string filepath) { byte[] bytes = StreamToBytes(stream); FileStream fileStream = new FileStre...
阅读全文
摘要:程序一:后台代码: public ActionResult Index() { FileStream fs = new FileStream("e:\\file\\psb.jpg", FileMode.Open); byte[] t = S...
阅读全文
摘要:网上找的一个分页js,自己改了改。。前台页面@{ ViewBag.Title = "Index";}分页方法封装 序号 姓名 ...
阅读全文
摘要:public ActionResult DownLoad_File() { return File(ScLiu(PathUrl), "application/octet-stream", "sb.pdf"); ...
阅读全文