9eFish - 带有 asp.net mvc 2 标签的文章
1
臭虫

Dependency Injection in ASP.NET MVC 2 – Part 3: Custom DataAnnotation ValidationAttributes - DominicPettifer.co.uk

xgluxvxgluxv 发表于 7 小时, 47 分钟 之前
Wednesday, March 10, 2010 1:54:23 AM GMT
Technical Article - Part 3 in a series on Dependency Injection in ASP.NET MVC shows how to inject dependencies into custom ValidationAttributes, used to implement validation using the DataAnnotations framework. Have you ever needed to hit a database when validating a ViewModel/form submit, and wondered how to do it? (more)
类别: Foundation | 点击: 0 | 评论 | | 源: www.dominicpettifer.co.uk
标签: asp.net mvc 2, DataAnnotation ValidationAttributes, Dependency Injection
1
臭虫

Dependency Injection in ASP.NET MVC 2 – Part 2: ModelBinders/ViewModels - DominicPettifer.co.uk

xgluxvxgluxv 发表于 7 小时, 48 分钟 之前
Wednesday, March 10, 2010 1:53:07 AM GMT
Technical Article - In part 2 of a series on Dependency Injection in ASP.NET MVC, we look at injecting dependencies into your ViewModels. This technique comes in useful for when you want to render a dropdown list of items from a database, and don’t want your controller populating the items. (more)
类别: Foundation | 点击: 0 | 评论 | | 源: www.dominicpettifer.co.uk
标签: asp.net mvc 2, Dependency Injection, ModelBinders
1
臭虫

Dependency Injection in ASP.NET MVC 2 – Part 1: Controllers - DominicPettifer.co.uk

xgluxvxgluxv 发表于 7 小时, 51 分钟 之前
Wednesday, March 10, 2010 1:50:57 AM GMT
Technical Article - In the first part of three, I show you how to perform Dependency Injection in ASP.NET MVC 2 using the Castle Windsor IOC (Inversion of Control) Container. In part 1 we look at injecting dependencies into your Controllers. (more)
类别: Foundation | 点击: 0 | 评论 | | 源: www.dominicpettifer.co.uk
标签: asp.net mvc 2, Controllers, Dependency Injection
1
臭虫

NHibernate Validator ASP.NET MVC 2 Model Validation - Scott's Blog

xgluxvxgluxv 发表于 6 天, 18 小时, 19 分钟 之前
Monday, March 08, 2010 4:56:21 PM GMT Wednesday, March 03, 2010 3:22:12 PM GMT
Tuesday, March 02, 2010 1:42 PM srkirkland NHibernate Validator ASP.NET MVC 2 Model Validation ASP.NET MVC2 will improve the built in Model Validation in a number of ways, including the addition of client side validation (ala xVal).  If you would like more information on Model Validation in ASP.NET MVC 2, see Scott Gu’s detailed post on this subject.  Out of the box ASP.NET MVC 2 will include support for DataAnnotations, and there are some ex... (more)
类别: Web Form | 点击: 2 | 评论 | | 源: weblogs.asp.net
标签: asp.net mvc 2, NHibernate Validator
1
臭虫

Partial Validation in ASP.NET MVC 2 « Steve Sanderson’s blog

adminadmin 发表于 10 天, 16 小时, 49 分钟 之前
Monday, March 08, 2010 4:56:21 PM GMT Saturday, February 27, 2010 4:52:49 PM GMT
It’s tiny tip time… Since all the fuss about [Required] validators in ASP.NET MVC 2, the validation behaviour was changed in Release Candidate 2. Previously, the framework only validated fields that were actually posted in the form, whereas now it validates all the fields on any model object that the model binder gives you. Most people prefer this new behaviour, because they don’t like the idea that someone can avoid a [Required] rule just by using FireBug or similar to delete the HTML form field. That’... (more)
类别: Web Form | 点击: 0 | 评论 | | 源: blog.stevensanderson.com
标签: asp.net mvc 2, Partial Validation
1
臭虫

Brad Wilson: ASP.NET MVC 2 Templates, Part 1: Introduction

xgluxvxgluxv 发表于 12 天, 4 小时, 6 分钟 之前
Monday, March 08, 2010 2:57:47 AM GMT Friday, February 26, 2010 5:35:31 AM GMT
Series IndexPart 1: Introduction Part 2: ModelMetadataPart 3: Default TemplatesPart 4: Custom Object TemplatesPart 5: Master Page TemplatesIntroduction to Templates One of the major new features in ASP.NET MVC 2 is templates. This is a feature that’s similar to Dynamic Data for WebForms. Given an object of a given type, the system can automatically display or edit that object, whether it’s a simple data item (like an integer, a decimal, a string, etc.) or a complex data item (like a class). (more)
类别: Foundation | 点击: 0 | 评论 | | 源: bradwilson.typepad.com
标签: asp.net mvc 2, Template
1
臭虫

Extreme ASP.NET - Model Validation and Metadata in ASP.NET MVC 2

xgluxvxgluxv 发表于 12 天, 4 小时, 10 分钟 之前
Monday, March 08, 2010 2:57:47 AM GMT Friday, February 26, 2010 5:31:54 AM GMT
One of the new features added to the ASP.NET MVC 2 release is the ability to validate user input on both the server and client. All you need to do is give the framework some information about the data you need validated, and the framework will take care of the hard work and details. This feature is a tremendous boon for those of us who wrote custom validation code and custom model binders to perform simple model validation with ASP.NET MVC 1.0. In this article, I’ll look at the built-in validation sup... (more)
类别: Foundation | 点击: 1 | 评论 | | 源: msdn.microsoft.com
标签: asp.net mvc 2, Model Validation
1
臭虫

Brad Wilson: Remote Validation with ASP.NET MVC 2

xgluxvxgluxv 发表于 37 天, 22 小时, 27 分钟 之前
Wednesday, February 03, 2010 3:12:43 PM GMT Sunday, January 31, 2010 11:13:58 AM GMT
One validation feature that we didn’t quite have time for in MVC 2’s new client-side validation support is called “remote validation”. Remote validation means we make a call back to our web site to ensure that a given value is valid. You might want this in cases where it’s not easy (or possible) to determine whether the value is valid on the client side, but you’d still like to give the user client-side feedback about the validity of the item. The canonical example is checking to see if a desired userna... (more)
类别: Web Form | 点击: 0 | 评论 | | 源: bradwilson.typepad.com
标签: asp.net mvc 2, Validation
1
臭虫

Editing a variable length list, ASP.NET MVC 2-style « Steve Sanderson’s blog

xgluxvxgluxv 发表于 37 天, 22 小时, 29 分钟 之前
Wednesday, February 03, 2010 3:12:43 PM GMT Sunday, January 31, 2010 11:12:52 AM GMT
A while back I posted about a way of editing a list of items where the user can add or remove as many items as they want. Tim Scott later provided some helpers to make the code neater. Now, I find myself making use of this technique so often that I thought it would be worthwhile providing an update to show how you can do it even more easily with ASP.NET MVC 2 because of its strongly-typed and templated input helpers. Download the demo project or read on for details.Getting Started For this example I’m ... (more)
类别: Web Form | 点击: 1 | 评论 | | 源: blog.stevensanderson.com
标签: asp.net mvc 2
1
臭虫

Wayne Brantley: ASP.NET MVC 2 Beta EditorFor improvements

xgluxvxgluxv 发表于 87 天, 20 小时, 17 分钟 之前
Friday, December 18, 2009 2:11:35 PM GMT Saturday, December 12, 2009 1:23:58 PM GMT
ASP.NET MVC 2 Beta has some great improvements.   One of these improvements is the Html.EditorFor extension.  Basically, this extension takes data annotations and types information from your model and uses those to generate editors.  You MUST use a strongly typed view to take advantage of this! I am going to give a brief introduction, just to get to my enhancement - for more information see this article. So, if you have this: mymodel.SomeField %> If SomeField ... (more)
类别: Web Form | 点击: 3 | 评论 | | 源: blog.waynebrantley.com
标签: asp.net mvc 2
1
臭虫

CreateActionInvoker in ASP.NET MVC 2

xgluxvxgluxv 发表于 87 天, 20 小时, 24 分钟 之前
Friday, December 18, 2009 2:11:35 PM GMT Saturday, December 12, 2009 1:17:56 PM GMT
The Controller’s ActionInvoker property everything a property could desire: strategy and laziness. It did its job so well that I never even paid attention to it. That one has been around since ASP.NET MVC 1. I noticed earlier today a new method, CreateActionInvoker(), on the Controller class in ASP.NET MVC 2. Intrigued by the new method, I began playing around with ActionInvokers and learned an ASP.NET MVC design lesson. Have you ever done something like this?public class MyController : Controller { ... (more)
类别: Web Form | 点击: 0 | 评论 | | 源: www.kodefuguru.com
标签: actioninvoker, asp.net mvc 2
1
臭虫

Powered By ALT.NET » ASP.NET MVC 2 Part 5 – Creating Data Repositories

xgluxvxgluxv 发表于 92 天, 7 小时, 8 分钟 之前
Wednesday, December 16, 2009 4:06:11 PM GMT Tuesday, December 08, 2009 2:32:59 AM GMT
A Data Repository Using the Entity Framework We are going to use an interface to expose the API of our repository. That way, all we have to do is tell the client application to expect an object that conforms to that interface. We can then switch out the implementations without rewriting the client. (more)
类别: Architecture | 点击: 7 | 评论 | | 源: poweredbyalt.net
标签: asp.net mvc 2, Data Repositories
1
臭虫

Customizing ASP.NET MVC 2 - Metadata and Validation

xgluxvxgluxv 发表于 99 天, 8 小时, 26 分钟 之前
Tuesday, December 08, 2009 4:20:19 PM GMT Tuesday, December 01, 2009 1:15:38 AM GMT
Contents [hide]1 Model Metadata 2 Validation 3 Summary Model Metadata In the first article in this series, A First Look at ASP.NET MVC 2, we looked at the new templated input helpers. To recall, this means you can simply do:<%= Html.EditorFor(m=>m) %> Preview 2 introduced a slightly friendlier syntax for this...<%= Html.EditorForModel() %> With this the framework will generate scaffolding for you. The built-in scaffolding is very basic; however you can customize it by providin... (more)
类别: Architecture | 点击: 8 | 评论 | | 源: dotnetslackers.com
标签: asp.net mvc 2, Customizing
1
臭虫

Building a StackOverflow inspired Knowledge Exchange - Three Tiers to MVC – Hooray - A simple MVC application

adminadmin 发表于 114 天, 5 小时, 4 分钟 之前
Wednesday, November 25, 2009 4:59:41 AM GMT Monday, November 16, 2009 4:37:29 AM GMT
Contents [hide]1 Introduction 2 A simple ASP.NET MVC application 2.1 Getting the database up and running 2.2 LINQ to SQL 2.3 Creating our first page 2.4 Dependencies 2.5 Pros 2.6 Cons 2.7 Comparison Chart 3 Summary The Stack Overflow Inspired Knowledge Exchange SeriesTOC Checkout the project homepage of this series to follow our journey from the creation of the famous StackOverFlow website. Introduction In the last article we took a look at some team collaboration aspects of SketchFlo... (more)
类别: Foundation | 点击: 3 | 评论 | | 源: dotnetslackers.com
标签: asp.net mvc 2
1
臭虫

UIHintAttribute with ASP.NET MVC 2.0 Html.DisplayFor Template Helper - DataAnnotations

carolhaozicarolhaozi 发表于 203 天, 7 小时, 48 分钟 之前
Monday, August 24, 2009 1:12:28 AM GMT Wednesday, August 19, 2009 1:53:07 AM GMT
UIHintAttribute with ASP.NET MVC 2.0 Html.DisplayFor Template Helper - DataAnnotations Working on a series of articles on ASP.NET MVC 2.0 that are subject to change when ASP.NET MVC 2.0 gets released as a part of Visual Studio 2010:HttpPostAttribute in ASP.NET MVC 2.0 Preview 1 Uses AcceptVerbsAttributeDefaultModelBinder Supports DataAnnotations and ValidationAttribute (s) in ASP.NET MVC 2.0ASP.NET MVC 2.0 and ASP.NET DynamicData Buddy Classes for Holding Metadata - MetadataTypeDataTypeAttribute and ASP... (more)
类别: Web Form | 点击: 12 | 评论 | | 源: davidhayden.com
标签: asp.net mvc 2, DataAnnotations
1
臭虫

Default Templated Views

carolhaozicarolhaozi 发表于 217 天, 7 小时, 40 分钟 之前
Friday, August 07, 2009 1:25:03 AM GMT Wednesday, August 05, 2009 2:01:29 AM GMT
Default Templated ViewsAug 04, 200912 CommentsPrint Note, this blog post is based on Preview 1 of ASP.NET MVC 2 and details are subject to change. I’ll try to get back to normal ASP.NET MVC 1.0 content soon. :) While in a meeting yesterday with “The Gu”, the topic of automatic views came up. Imagine if you could simply instantiate a model object within a controller action, return it to the “view”, and have ASP.NET MVC provide simple scaffolded edit and details views for the model automatically. That’s... (more)
类别: Web Form | 点击: 0 | 评论 | | 源: haacked.com
标签: asp.net mvc 2, Default Templated Views
1
臭虫

ASP.NET MVC 2 Preview 1 released!

xgluxvxgluxv 发表于 219 天, 17 小时, 12 分钟 之前
Thursday, August 06, 2009 1:43:31 AM GMT Sunday, August 02, 2009 4:29:21 PM GMT
Today, Phil Haack did a blog post on the release of ASP.NET MVC 2 Preview 1! Get it while it’s fresh :-) An updated roadmap is also available on CodePlex. Guess now is about time to start revising my ASP.NET MVC 1.0 Quickly book… New features in ASP.NET MVC Preview 1Templated helpers Templated helpers are not new: ASP.NET Dynamic Data already used this feature. Basically, you are creating a default control when you want to display/edit a specific data type in a view. For example, a System.String will ... (more)
类别: Architecture | 点击: 1 | 评论 | | 源: blog.maartenballiauw.be
标签: asp.net mvc 2
1
臭虫

ASP.NET MVC V2 Preview 1 Released - ScottGu's Blog

adminadmin 发表于 221 天, 22 小时, 44 分钟 之前
Tuesday, August 04, 2009 1:57:34 AM GMT Friday, July 31, 2009 10:57:48 AM GMT
The ASP.NET team just released the first public preview of ASP.NET MVC Version 2.  You can download it here. Today’s preview works with .NET 3.5 SP1 and VS 2008, and can be installed side-by-side on the same machine as ASP.NET MVC 1.0 (meaning they don’t conflict and your existing ASP.NET MVC 1.0 projects will not be impacted if you install it).  If you have both ASP.NET MVC 1.0 and ASP.NET MVC 2.0 installed you’ll see two ASP.NET MVC project templates within Visual Studio 2008’s “New Project” dialog: ... (more)
类别: Architecture | 点击: 1 | 评论 | | 源: weblogs.asp.net
标签: asp.net mvc 2
1
臭虫

ASP.NET - Asp.net mvc 2 Road map

xgluxvxgluxv 发表于 275 天, 8 小时, 6 分钟 之前
Wednesday, June 10, 2009 3:52:34 PM GMT Monday, June 08, 2009 1:35:23 AM GMT
HomeMVCRoad MapASP.NET MVC Roadmap This is a high level roadmap for ASP.NET MVC featuring the areas we are investigating. We will continually update this as we post releases to the CodePlex site. ASP.NET MVC 2Theme: Improved Productivity and Enterprise Ready The goal wi... (more)
类别: Web Form | 点击: 5 | 评论 | | 源: aspnet.codeplex.com
标签: asp.net mvc, asp.net mvc 2, RoadMap