随笔分类 -  .net.MVC

摘要:using System; using System.Web; public static class CookieHelper { /// /// 添加cookie /// public static voi... 阅读全文
posted @ 2014-09-10 09:29 立己达人 阅读(224) 评论(0) 推荐(0)
摘要:1. front-view2. back-code 阅读全文
posted @ 2014-09-01 14:15 立己达人 阅读(125) 评论(0) 推荐(0)
摘要:路由http://msdn.microsoft.com/zh-cn/library/cc668201.aspxhttp://aspnetwebstack.codeplex.com/SourceControl/latest#src/System.Web.Mvc/Controller.cs5.http:... 阅读全文
posted @ 2014-08-05 10:04 立己达人 阅读(244) 评论(0) 推荐(0)
摘要:1. 扩展代码机构namespace System.Web.Mvc.Html{ public static class FormExtensions//表单相关扩展方法,例如创建表单标签等。 public static class InputExtensions//这里包含了所有inpu... 阅读全文
posted @ 2014-07-24 17:04 立己达人 阅读(200) 评论(0) 推荐(0)
摘要:1. 引入命名空间using System.Web.Script.Serialization;2. 解析 Json 为 Dictionary 类型JavaScriptSerializer js = new JavaScriptSerializer();return js.Deserialize(st... 阅读全文
posted @ 2014-07-07 11:37 立己达人 阅读(134) 评论(0) 推荐(0)
摘要:1. 开源ASP.NET MVChttp://aspnetwebstack.codeplex.com/SourceControl/latest#src/System.Web.Mvc/Html/ValidationExtensions.cs2. MVC 文档http://www.asp.net/mvc... 阅读全文
posted @ 2014-06-28 18:28 立己达人 阅读(166) 评论(0) 推荐(0)
摘要:1. 序列化模型到 View 的 HiddenField, 回传到 Controller 安全验证.serialize(Model) 阅读全文
posted @ 2014-06-19 17:12 立己达人 阅读(125) 评论(0) 推荐(0)