Presentation is loading. Please wait.

Presentation is loading. Please wait.

Everything starts so simple, but then…

Similar presentations


Presentation on theme: "Everything starts so simple, but then…"— Presentation transcript:

1

2 Everything starts so simple, but then…

3

4

5

6

7

8 > Html.RenderPartial() Renders UI > Html.RenderAction() Invokes controller action that renders UI

9 demo

10 Areas Enables you to maintain a clear separation of functionality in a single project AreaRegistration.RegisterAllAreas();

11 demo

12 Define Validation

13 > Model Validation Providers > Data Annotation (Default) > Enterprise Library > XML Anything you want

14 Data Annotation Validators > [Required] > [Range] > [RegularExpression] > [StringLength] Custom Validator

15

16 demo

17 Client-Side Validation <script src="../../Scripts/MicrosoftAjax.debug.js" type="text/javascript"> <script src="../../Scripts/MicrosoftMvcAjax.debug.js" type="text/javascript">

18 demo

19

20 Display Helper Methods > Html.Display() > Html.DisplayFor() > Html.DisplayForModel() Edit Helper Methods > Html.Editor() > Html.EditorFor() > Html.EditorForModel()

21

22 Fallback: > Employee > Person > Object

23 demo

24 > Security > HTML Encoding Syntax > > Works with ASP.NET 4 > JsonResult > Performance Improvements > Asynchronous Controller Actions > Convenience Improvements > Default Parameters for Controller Actions > HttpPost, HttpGet, RequiresHttps > Value Providers

25 Source for Model Binder data: > FormValueProvider > RouteDataValueProvider > QueryStringValueProvider > HttpFileCollectionValueProvider and custom…

26 demo

27

28 © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

29


Download ppt "Everything starts so simple, but then…"

Similar presentations


Ads by Google