一棵树

路漫漫其修远兮 吾将上下而求索。

导航

文章分类 -  Mvc

ASP.NET MVC Routing: Play Traffic Cop with Your Routes
只有注册用户登录后才能阅读该文。

posted @ 2019-01-18 11:15 nxp 阅读(2) 评论(0) 推荐(0)

3 Ways To Receive Data From "Postbacks" in ASP.NET MVC and ASP.NET MVC Views: Passing Data to Views
只有注册用户登录后才能阅读该文。

posted @ 2019-01-18 10:52 nxp 阅读(3) 评论(0) 推荐(0)

https://blog.udemy.com/asp-net-mvc-tutorial/
只有注册用户登录后才能阅读该文。

posted @ 2019-01-18 10:40 nxp 阅读(2) 评论(0) 推荐(0)

dddd
摘要:@model WebApplication2.Models.DemoModel@{ ViewBag.Title = "Demo";}Demo @Html.TextBoxFor(m => m.MyDemo) @Html.TextBoxFor(m => m.MyDemo2) @H... 阅读全文

posted @ 2015-04-26 22:56 nxp 阅读(117) 评论(0) 推荐(0)

demo
摘要:@model IEnumerable@{ ViewBag.Title = "Demo"; Layout = "~/Views/Shared/_Layout.cshtml";}Demo @foreach(var item... 阅读全文

posted @ 2015-04-19 22:40 nxp 阅读(121) 评论(0) 推荐(0)

为AOP而生 — ASP.Net MVC默认的过滤器
摘要:http://blog.jobbole.com/85005/三、为AOP而生 — ASP.Net MVC默认的过滤器3.1 过滤器初步 大一点的项目总会有相关的AOP面向切面的组件,而MVC(特指:Asp.Net MVC,以下皆同)项目中Action在执行前或者执行后我们想做一些特殊的操作(比如身... 阅读全文

posted @ 2015-03-27 18:13 nxp 阅读(439) 评论(0) 推荐(0)

Routing深入详解
摘要:http://blog.jobbole.com/84991/三、Routing深入详解首先,ASP.NetMVC项目是URL请求驱动的,为什么访问localhost/home/index会传递给HomeController中名为index的action(即HomeController类中的index... 阅读全文

posted @ 2015-03-27 16:26 nxp 阅读(750) 评论(0) 推荐(0)

ASP.NET MVC中HttpContext, HttpContextBase, HttpContextWrapper联系
摘要:来自--http://blog.csdn.net/sundacheng1989/article/details/10551091HttpContext类:封装有关个别HTTP请求的所有HTTP特定的信息,又叫上下文。看到这个解释,我觉得有些抽象,Http特定信息具体又是什么?看了下备注:为继承 IH... 阅读全文

posted @ 2015-03-27 14:09 nxp 阅读(159) 评论(0) 推荐(0)

ASP.Net MVC请求处理流程
摘要:http://blog.jobbole.com/85033/开篇:上一篇我们了解了在WebForm模式下一个Page页面的生命周期,它经历了初始化Init、加载Load以及呈现Render三个重要阶段,其中构造了页面控件树,并对页面控件树进行了大量的递归操作,最后将与模板结合生成的HTML返回给了浏... 阅读全文

posted @ 2015-03-27 13:52 nxp 阅读(317) 评论(0) 推荐(0)

mvc 中可以用的非常好的公共类
摘要:1:怎样在mvc中设置公共的session类namespace Mobile.Infrastructure{ public enum SessionStateKeys { nxp } public static class SessionStateHelpe... 阅读全文

posted @ 2015-01-15 16:05 nxp 阅读(154) 评论(0) 推荐(0)

mvc 数据的流转
摘要:在 Controller 中获取状态数据我们经常需要访问客户端提交过来的数据,比如 QueryString 值、表单值和通过路由系统来自 URL 的参数值,这些值都可称为状态数据。下面是 Controller 中获取状态数据的三个主要来源:一系列的上下文对象。传递给 Action 方法的参数。显式的... 阅读全文

posted @ 2014-12-16 18:02 nxp 阅读(428) 评论(0) 推荐(0)

mvc 网站
摘要:http://www.cnblogs.com/willick/p/3195560.html $.ajax({ type: "Get", url: "/Content/PositionData.xml", dataType: "xml"... 阅读全文

posted @ 2014-12-16 16:01 nxp 阅读(223) 评论(0) 推荐(0)

mvc 4 Ajax and jQuery
摘要:第一种方法:1:带ajax请求创建一个链接@Ajax.ActionLink("This is an Ajax link", "actionName", "controllerName", ajaxOptions)@Ajax.ActionLink("Display pet picture", "Get... 阅读全文

posted @ 2014-12-15 14:26 nxp 阅读(72) 评论(0) 推荐(0)

mvc5来自葡萄城总结
摘要:1: 第一部分的 URL 确定哪个控制器类会被执行。因此 /HelloWorld 映射到HelloWorldController 控制器类。 第二部分的 URL 确定要执行控制器类中的那个操作方法。因此/HelloWorld/Index,会使得 HelloWorldController 控制器类... 阅读全文

posted @ 2014-11-25 11:02 nxp 阅读(93) 评论(0) 推荐(0)

关于Mvc验证的
摘要:1:[Required(ErrorMessage = "Please enter your name")]public string Name { get; set; }[Required(ErrorMessage = "Please enter your email address")][Regu... 阅读全文

posted @ 2014-11-20 16:52 nxp 阅读(127) 评论(0) 推荐(0)

mvc @Html 方法总结
摘要:1:@Html.ActionLink("RSVP Now", "RsvpForm")2:有一个model看看怎么样绑定model字段的public class GuestResponse {public string Name { get; set; }public string Email { g... 阅读全文

posted @ 2014-11-20 16:34 nxp 阅读(322) 评论(0) 推荐(0)

Pro Asp.net mvc 5 Reading notes
只有注册用户登录后才能阅读该文。

posted @ 2014-11-20 15:42 nxp 阅读(8) 评论(0) 推荐(0)