10 2011 档案

摘要:这些天都在研究asp.net mvc 由于.net 基础薄弱完全是个菜鸟,遇到了很多麻烦,在使用asp.net mvc +ef code first添加记录遇到一个错误:一个实体对象不能由多个 IEntityChangeTracker 实例引用,通过百度谷歌搜索,本人的解决方法是:public partial class Category { public int ID { get; set; } [Display(Name = "栏目名称")] [StringLength(50), Required(ErrorMessage = "栏目名称不能... 阅读全文
posted @ 2011-10-25 00:46 lixiaojin 阅读(1795) 评论(0) 推荐(0) 编辑
摘要:Request.QueryString NameValueCollection GET variables sent with this requestRequest.Form NameValueCollection POST variables sent with this requestRequest.Cookies HttpCookieCollection Cookies sent by the browser with this requestRequest.Http Method string The HTTP method (verb, such as GET or POST) u 阅读全文
posted @ 2011-10-21 17:34 lixiaojin 阅读(518) 评论(0) 推荐(0) 编辑
摘要:介绍asp.net mvc 之 asp.net mvc 3.0 新特性之 Model:通过 Data Annotations 与 jQuery 的结合实现服务端和客户端的双重验证 双重验证中,使客户端实现远程的异步验证 自定义Data Annotations 与 jQuery,以实现自定义的双重验证 示例1、Model 中通过 Data Annotations 与 jQuery 的结合实现服务端和客户端的双重验证Web.configview sourceprint?<configuration> <!-- 要实现服务端和客户端的双重验证,需要做如下配置,因为双重验证中的客户端 阅读全文
posted @ 2011-10-14 15:38 lixiaojin 阅读(608) 评论(1) 推荐(2) 编辑

点击右上角即可分享
微信分享提示