博 之 文

以 拼 搏 设 计 梦 想 , 以 恒 心 编 程 明 天
  首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

03 2014 档案

摘要:(2011-05-27 17:19:00)转载▼标签:杂谈 分类: JSjquery获取select选择的文本与值获取select :获取select 选中的 text : $("#ddlregtype").find("option:selected").text();获取select选中的 value: $("#ddlregtype ").val();获取select选中的索引: $("#ddlregtype ").get(0).selectedindex;设置select:设置select 选中的索引: $(& 阅读全文

posted @ 2014-03-26 18:19 IsNull_Soft 阅读(238) 评论(0) 推荐(0)

摘要:后台代码/// /// 获取省份 /// public JsonResult GetProvincelist() { return Json(db.Province.ToList(),JsonRequestBehavior.AllowGet); } /// /// 获取城市 /// /// /// public JsonResult GetCitylist(int pid) { ... 阅读全文

posted @ 2014-03-18 19:36 IsNull_Soft 阅读(178) 评论(0) 推荐(0)

摘要:string str = "2007年7月8日";DateTime dt = Convert.ToDateTime( str );System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-GB");string res = dt.ToString("m"); /** Output. * * d :08/17/2000 * D :Thursday, August 17, 2000 * f :Thursda 阅读全文

posted @ 2014-03-12 10:38 IsNull_Soft 阅读(272) 评论(0) 推荐(0)

摘要:在开发过程中,需要用户登陆才能访问指定的页面这种功能,微软已经提供了这个特性。 // 摘要: // 表示一个特性,该特性用于限制调用方对操作方法的访问。 [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, Inherited = true, AllowMultiple = true)] public class AuthorizeAttribute : FilterAttribute, IAuthorizationFilter 但是,美中不足的是,需要微软自带的一些用户验证的东... 阅读全文

posted @ 2014-03-07 16:35 IsNull_Soft 阅读(124) 评论(0) 推荐(0)