11 2012 档案
摘要:Asp.net MVC routing是一个独立于FrameWork的独立组件。Introduce to Routing :Routing within the Asp.net MVC framework serves two main purposes:It matches incoming requests that would not otherwise match a file on the file system and maps the request to a controller action. Url会匹配输入的请求但是并不是匹配文件系统上的某一个文件,而是映射到某一个Con
阅读全文
摘要:You can use four attributes in the DataAnnotations namespace to cover common validation scenarios.Required 特性Like all the built-in validation attributes,the Required attribute delivers both server-side and client-side validation logic(alothough internally,it is another component in the MVC framework
阅读全文
摘要:partial RenderPartial html.Partial 有返回值(MvcHtmlString) 而RenderPartial 则没有任何的返回值(void) partial输出到临时变量StringWriter 而renderPartial则是直接输出到HtmlHelper.ViewContext.Writer(即直接输出到response中) 调用语法也不同:@Html.Parti...
阅读全文
摘要:FindView() FindPartialView() 的区别RenderBody() RenderSection() RenderPage() 的区别 ,应该在何时使用不同的方法来操作Controller 类的属性ViewData 及其 ViewBag的 属性,IView的属性ViewEngine的属性 ViewEngineResult属性ViewContext属性ModelBinder 模型绑定语法 及其遇到的安全问题ModelState 模型状态详细的Razor语法介绍 深入了解这些是应当深入学习Asp.net MVC必备的知识点。亲 你掌握了没有
阅读全文
摘要:mvc 3 View ViewBag ViewData
阅读全文
摘要:MVC处理流程,详细介绍了asp.net MVC 从发起请求到显示页面的整个过程,
阅读全文
摘要:这个约定是我在Profession Asp.net MVC 3 这本书上看到写下的笔记,作为一个总结。因为原书是英文的,所以可能会有翻译不对的地方,我尽量使用原文。MVC is designed around some sensible convention-based defaults that can be overridden as needed.This concept is commonly referred to as “Convention over configuration”.MVC被设计用来遵循以约定为基础。约定胜于配置在一些年前的Ruby on Rails 很流行,它最基
阅读全文
摘要:Notice that we’re referred to MVC as a pattern for the User Interface.请注意 我们吧MVC作为一个用户接口的模式。 约定胜于配置 不要重复你自己 尝试更有效的方法,如果可以,抛弃你的程序员的方式 asp.net Web Form 的几点不足: 1.View State weight: The actual mechanism ...
阅读全文