<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_Fred Xu的技术博客_分类_Asp.Net MVC</title><id>http://feed.cnblogs.com/blog/u/43880/category/188434/rss</id><updated>2012-05-27T12:39:17Z</updated><generator>feed.cnblogs.com</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/Fred_Xu/category/188434.html"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/43880/category/188434/rss"/><entry><id>http://www.cnblogs.com/Fred_Xu/archive/2012/04/02/how-to-use-htmlhelper-generatelink-with-htmlattributes.html</id><title type="text">如何在HtmlHelper.GenerateLink方法中生成HtmlAttributes</title><summary type="text">在Controller中使用HtmlHelper.GenerateLink方法，生成一段HtmlAttributes,例如： string opLink = HtmlHelper.GenerateLink(requestContext, System.Web.Routing.RouteTable.Routes, "订单进程", "Default", "Create", "OrderProcess", new System.Web.Routing.RouteValue...</summary><published>2012-04-02T08:47:00Z</published><updated>2012-04-02T08:47:00Z</updated><author><name>Fred_Xu</name><uri>http://www.cnblogs.com/Fred_Xu/</uri></author><link rel="alternate" href="http://www.cnblogs.com/Fred_Xu/archive/2012/04/02/how-to-use-htmlhelper-generatelink-with-htmlattributes.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/Fred_Xu/archive/2012/04/02/how-to-use-htmlhelper-generatelink-with-htmlattributes.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/Fred_Xu/archive/2012/03/23/how-to-avoid-Illegal-characters-in-path-error-in-asp-net-mvc.html</id><title type="text">Asp.net MVC Model设置为string类型时报错：Illegal characters in path</title><summary type="text">如果你将一个页面的Model设置为string类型，那么你会碰到这个错误：Illegal Characters in path似乎很奇怪，或许你甚至都不知道造成这个错误的原因是因为Model类型为string。实际上，你得到上面的错误原因是在你的Controller中，你通常调用View方法传送这个model作为唯一的参数并且这个model的值是string类型。但是你可能没有注意到View方法同样也有另外一个重载就是接受一个string作为这个View的名字。所以如果你传送这个model如下代码：return View("myStringModel");上面的代码中，你特</summary><published>2012-03-23T07:23:00Z</published><updated>2012-03-23T07:23:00Z</updated><author><name>Fred_Xu</name><uri>http://www.cnblogs.com/Fred_Xu/</uri></author><link rel="alternate" href="http://www.cnblogs.com/Fred_Xu/archive/2012/03/23/how-to-avoid-Illegal-characters-in-path-error-in-asp-net-mvc.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/Fred_Xu/archive/2012/03/23/how-to-avoid-Illegal-characters-in-path-error-in-asp-net-mvc.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/Fred_Xu/archive/2012/03/21/have-to-click-twice-to-get-submitted-by-using-submitHandler.html</id><title type="text">使用jquery.validate submitHandler必须点击两次才能提交表单</title><summary type="text">在开发中遇到了这样一个问题，Form表单需要有两个按钮来做验证，如图所示：左边按钮直接提交给当前Form表单，右边按钮则是要使用Ajax来异步提交表单，保持页面不刷新跳转。表单验证我们使用了jquery.validate插件，表单异步提交使用了jquery.form插件配合前者，代码如下：左边按钮点击后会执行validate方法，验证通过后form.submit进行提交；而右边按钮点击执行validate通过后，则使用jquery.form的api来做submit，这个时候问题出来了，需要点击两下右边按钮才能执行异步提交Form，ORZ....通过g搜索，找到了解决方法，只要将代码删除即可。$</summary><published>2012-03-21T12:21:00Z</published><updated>2012-03-21T12:21:00Z</updated><author><name>Fred_Xu</name><uri>http://www.cnblogs.com/Fred_Xu/</uri></author><link rel="alternate" href="http://www.cnblogs.com/Fred_Xu/archive/2012/03/21/have-to-click-twice-to-get-submitted-by-using-submitHandler.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/Fred_Xu/archive/2012/03/21/have-to-click-twice-to-get-submitted-by-using-submitHandler.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/Fred_Xu/archive/2011/09/12/httprequest-eurl-axd-error.html</id><title type="text">ASP.NET生成eurl.axd Http异常错误处理方法【转】</title><summary type="text">在IIS6中同时启用了ASP.NET 2.0 和 ASP.NET 4.0 后，网站程序可能会出现如下错误：“ System.Web.HttpException: Path ‘//eurl.axd/‘ was not found. ”错误发生的原因是当ASP.NET检测到Web站点配置为使用ASP.NET 4.0，本地ASP.NET 4.0 的组件会传递一个不能扩展的 URL到ASP.NET的管理程序作进一步处理。但是，如果一个低于ASP.NET 4.0 的网站配置为使用ASP.NET 2.0，处理这样不能扩展的 URL 时，URL的修改结果中会包含字符串“eurl.axd”，修改后的URL会被</summary><published>2011-09-12T04:53:00Z</published><updated>2011-09-12T04:53:00Z</updated><author><name>Fred_Xu</name><uri>http://www.cnblogs.com/Fred_Xu/</uri></author><link rel="alternate" href="http://www.cnblogs.com/Fred_Xu/archive/2011/09/12/httprequest-eurl-axd-error.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/Fred_Xu/archive/2011/09/12/httprequest-eurl-axd-error.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/Fred_Xu/archive/2011/09/11/asp-net-mvc-using-controller-updatemodel-when-using-a-viewmodel.html</id><title type="text">使用Controller.UpdateModel方法来更新ViewModel</title><summary type="text">原文（En）：http://www.joe-stevens.com/2010/02/17/asp-net-mvc-using-controller-updatemodel-when-using-a-viewmodel/在MVC中，更新Model的时候，我们通常使用Controller.UpdateModel方法。我最近在项目中使用了自定义ViewModel，在使用UpdateModel方法的时候无法映射到Post的数据到Model对象里。这个解决方案是一个简单的，但并不像它应该的IntelliSense不拾取方法的重载泛型类型推断时。当不使用ViewModel的时候，我可以像这样使用Contr</summary><published>2011-09-11T05:10:00Z</published><updated>2011-09-11T05:10:00Z</updated><author><name>Fred_Xu</name><uri>http://www.cnblogs.com/Fred_Xu/</uri></author><link rel="alternate" href="http://www.cnblogs.com/Fred_Xu/archive/2011/09/11/asp-net-mvc-using-controller-updatemodel-when-using-a-viewmodel.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/Fred_Xu/archive/2011/09/11/asp-net-mvc-using-controller-updatemodel-when-using-a-viewmodel.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/Fred_Xu/archive/2009/04/04/1446746.html</id><title type="text">ASP.NET MVC 官方教程</title><summary type="text"/><published>2009-04-04T14:12:00Z</published><updated>2009-04-04T14:12:00Z</updated><author><name>Fred_Xu</name><uri>http://www.cnblogs.com/Fred_Xu/</uri></author><link rel="alternate" href="http://www.cnblogs.com/Fred_Xu/archive/2009/04/04/1446746.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/Fred_Xu/archive/2009/04/04/1446746.html"/><content type="text"/></entry></feed>
