Presentation is loading. Please wait.

Presentation is loading. Please wait.

© Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel www.sela.co.il.

Similar presentations


Presentation on theme: "© Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel www.sela.co.il."— Presentation transcript:

1 © Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel www.sela.co.il

2 © Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel First Steps Architecture Forms & Action Filters Using Ajax & Security Extending MVC Q & A Summary

3 Build applications faster Scale easily Test better © Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel

4 A new Web Application Project type Simply an option Not a replacement for WebForms Builds on top ASP.NET Manual vs Automatic Transmission © Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel

5 Model Controller View

6 Each component has one responsibility – SRP : Single Responsibility Principle – DRY : Don’t Repeat Yourself More easily testable Helps with concurrent development © Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel

7

8 Not the new Web Forms 4.0 Not replacing Web Forms, but Adds to it It can not use Web Controls Not a whole new engine but sits on ASP.NET engine Not the best solution for REST © Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel

9 Maintain Clean Separation of Concerns Extensible and Pluggable Enable clean URLs and HTML Great integration within ASP.NET Tooling Support © Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel

10 Step 1 Incoming request directed to Controller Request ControllerController © Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel

11 Step 2 Controller processes request and forms a data Model ControllerController Model © Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel

12 Step 3 Model is passed to View ControllerController ViewView © Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel

13 Step 4 View transforms Model into appropriate output format ControllerController ViewView © Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel

14 Step 5 Response is rendered ResponseResponse ControllerController ViewView © Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel

15

16 URLs -> application -> Controller Action Construct outgoing URLs – Constructed URLs can be used to call back to Controllers/Actions © Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel

17

18 Inject code interceptors into the request of a MVC controller Package-up and re-use functionality in a clean declarative way Predefined Action Filters Custom Filters © Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel

19

20 Ajax is not just “Update Panel” You can use – Page methods – Web Services They all require you to write a lot of javascript MVC Ajax helps with Forms and ActionLinks !! © Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel

21 Built in Controller for Logging Using ASP.NET Security Providers Having the ability to control the security level of each controller method © Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel

22

23 Replace Any Part with one of your own As simple or complex as it needs to be to suit your tasks Plays well with others – Want to use NHibernate for models? OK! – Want to use Brail for views? OK! – Want to use VB for controllers? OK! © Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel

24 Preview 1 (Today) – Templated Helpers – Areas – Support for Data Annotations Preview 2 and beyond – Client Validation – Strongly-typed input helpers – Strongly-typed link helpers – Asynchronous Controller Actions – More based on feedback © Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel

25 MVCWeb Forms You want full control over markupYou like programming against the reusable control abstraction that encapsulate UI and logic You want a framework that enforces separation of concerns You like using the WYSWIG designer and would rather avoid angle brackets TDD/Unit Testing is a priority for youYou like keeping logic on the server rather than hand writing Javascript Control abstractions get in your way more than they help Unit testing with the MVP pattern is sufficient for your needs You like writing Javascript

26 © Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel

27 Not a replacement for WebForms All about alternatives Fundamental Part of the System.Web namespace Same team that builds WebForms © Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel

28 Official sites – Central landing site: http://asp.net/mvchttp://asp.net/mvc – Forums: http://forums.asp.net/1146.aspxhttp://forums.asp.net/1146.aspx Source available – Source drop: http://codeplex.com/aspnethttp://codeplex.com/aspnet Blogs – http://blogs.microsoft.co.il/blogs/noam http://blogs.microsoft.co.il/blogs/noam – http://weblogs.asp.net/scottgu http://weblogs.asp.net/scottgu – http://hanselman.com/ http://hanselman.com/ – http://haacked.com/ http://haacked.com/

29 ASP.NET 4.0 Deep Dive Dan Amiga Entity Framework Tips & Tricks Gil Fink Introduction to jQuery Development Vlad Azarkhin © Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel

30 WEB DEVLOPERS COMMUNITY (WDC) New Technologies Architecture Legacy Systems Data Traffic & Maintenance New Languages Community Driven JOIN WDC !! Every First Sunday of Any Month © Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel

31 © Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel www.sela.co.il Thank You ! Please Fill your Evaluation Forms


Download ppt "© Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel www.sela.co.il."

Similar presentations


Ads by Google