上一页 1 ··· 5 6 7 8 9 10 下一页
摘要: 需引用System.Dynamic命名空间 来源:http://www.cnblogs.com/ryanding/archive/2010/12/09/1900106.html dynamic Customer = new ExpandoObject(); Customer.Name = "Lucy"; Customer.Age = 20; Customer.Female = true;... 阅读全文
posted @ 2016-01-28 15:53 chenjingchun 阅读(382) 评论(0) 推荐(0) 编辑
摘要: 推荐一款好用的alert,下面地址是demo,很直观的看到效果,wap可以使用http://www.dglives.com/demo/sweetalert-master/example/ //text:内容 //timer:显示时间 //type:图标类型:success,info,warning 默认info //title:标题 可不填 默认:系统提示 function AlertC... 阅读全文
posted @ 2016-01-22 18:06 chenjingchun 阅读(1287) 评论(0) 推荐(0) 编辑
摘要: @Html.DropDownListFor(model => model.SchoolId, new SelectList(ViewBag.SelectList, "SchoolTypeId", "Name"), "请选择")//model.SchoolId类型Int ViewBag.SelectList集合 @Html.ValidationMessageFor(mod... 阅读全文
posted @ 2016-01-22 16:44 chenjingchun 阅读(465) 评论(0) 推荐(0) 编辑
摘要: XmlDocument xmldoc = new XmlDocument(); string xmlPath = HttpContext.Server.MapPath("~/*****.xml"); xmldoc.Load(xmlPath); XmlElement root = xmldoc.DocumentElement; string node = root.SelectSingleNo... 阅读全文
posted @ 2016-01-22 16:42 chenjingchun 阅读(146) 评论(0) 推荐(0) 编辑
摘要: public static string SortParam(T t) { string tStr = string.Empty; if (t == null) { return string.Empty; } System.... 阅读全文
posted @ 2016-01-22 16:38 chenjingchun 阅读(692) 评论(0) 推荐(0) 编辑
摘要: 1、checkbox日常jquery操作。 现在我们以下面的html为例进行checkbox的操作。 2、radio的jquery日常操作及属性 我们仍然以下面的html为例: radio操作如下: 3、select下拉框的日常jquery操作 select操作相比checkbox和radio要相对 阅读全文
posted @ 2016-01-22 16:03 chenjingchun 阅读(319) 评论(0) 推荐(0) 编辑
摘要: Newtonsoft.Json.Converters.IsoDateTimeConverter iso = new Newtonsoft.Json.Converters.IsoDateTimeConverter(); iso.DateTimeFormat = "yyyy/M/d HH:mm:ss"; 阅读全文
posted @ 2016-01-22 15:39 chenjingchun 阅读(655) 评论(0) 推荐(0) 编辑
摘要: $(function() { $("#go").click(function() { var models = []; $.each($("table tr"), function(i, item) { var ProductName = $(item).find("[name=ProductNam 阅读全文
posted @ 2016-01-22 15:36 chenjingchun 阅读(308) 评论(0) 推荐(1) 编辑
摘要: PM> enable-migrations 已在项目“EasyWeChat.Data”中启用迁移。若要覆盖现有迁移配置,请使用 -Force 参数。 PM> add-migration 位于命令管道位置 1 的 cmdlet Add-Migration 请为以下参数提供值: Name: 20141021 正在为迁移“20141021”搭建基架。 此迁... 阅读全文
posted @ 2016-01-22 15:33 chenjingchun 阅读(3807) 评论(1) 推荐(0) 编辑
摘要: URL的获取很简单,ASP.NET通用: 【1】获取 完整url (协议名+域名+虚拟目录名+文件名+参数) 【2】获取 虚拟目录名+页面名+参数: 【3】获取 虚拟目录名+页面名: 【4】获取 域名: 【5】获取 参数: 【6】获取 端口: 二、当前controller、action的获取 阅读全文
posted @ 2016-01-22 15:31 chenjingchun 阅读(324) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 下一页