
asp.net MVC
yyf_ad
这个作者很懒,什么都没留下…
展开
-
asp.net MVC
MVC是一种表现模式(Model,View,Controller),与三层架构不同(UI,BL,DA)。asp.net MVC的特点1、组件可替换。2、testability。3、开放源代码。原创 2012-03-11 21:32:33 · 452 阅读 · 0 评论 -
returnUrl when logon
Normally you shouldn't be reading from ReturnUrl. The flow works like this:Request to controller action which requires authentication using the [Authorize] attributeASP.NET MVC adds the ReturnUrl转载 2013-07-05 17:53:03 · 862 阅读 · 0 评论 -
Html.CheckBox
@Html.CheckBoxFor(x => x.IsApproved)输出:它渲染了一个checkbox和一个同名的隐藏input元素。因为浏览器在checkbox未选择时,不会递交checkbox的值。而隐藏值确保了,未选择checkbox时,false会被发送。在动作方法中查看递交的checkbox值: string[] s = Request.Form原创 2013-07-07 17:43:48 · 888 阅读 · 0 评论 -
ASP.NET MVC:窗体身份验证及角色权限管理示例 .
前言 本来使用Forms Authentication进行用户验证的方式是最常见的,但系统地阐明其方法的文章并不多见,网上更多的文章都是介绍其中某一部分的使用方法或实现原理,而更多的朋友则发文询问如何从头到尾完整第实现用户的注册、登录。因此,Anders Liu在这一系列文章中计划通过一个实际的例子,介绍如何基于Forms Authentication实现:l 用户注册(包括密转载 2013-07-02 17:27:37 · 1032 阅读 · 0 评论 -
Preventing Open Redirection Attacks in ASP.NET MVC
http://weblogs.asp.net/jgalloway/archive/2011/01/25/preventing-open-redirection-attacks-in-asp-net-mvc.aspxSummaryASP.NET MVC 3 includes a new change in the the Account Controller to prevent open转载 2013-07-05 17:55:48 · 1498 阅读 · 0 评论 -
A low-level Look at the ASP.NET Architecture
http://www.west-wind.com/presentations/howaspnetworks/howaspnetworks.asp By Rick Strahlwww.west-wind.comrstrahl@west-wind.com Last Update:August 24, 2008 Other Links:Download Examp转载 2013-07-05 17:57:08 · 884 阅读 · 0 评论 -
form data enctype
http://stackoverflow.com/questions/4526273/what-does-enctype-multipart-form-data-meanWhen submitting a form, you're trying to say your browser to send via the HTTP protocol a message on the network转载 2013-07-23 17:28:24 · 456 阅读 · 0 评论 -
accept and content-type
http://webmasters.stackexchange.com/questions/31212/difference-between-accept-and-content-type-http-headersAs you correctly note, the Accept header is used by HTTP clients to tell the server what转载 2013-07-23 17:16:02 · 812 阅读 · 0 评论