مشخصات کتاب
-
jon galloway
-
2011
-
انگلیسی
-
461
-
43
-
0
Professional ASP.NET MVC 3
دوره آموزش MVC
CHAPTER 1: GETTING STARTED 1
A Quick Introduction to ASP.NET MVC 1
How ASP.NET MVC Fits in with ASP.NET 2
The MVC Pattern 2
MVC as Applied to Web Frameworks 3
The Road to MVC 3 3
ASP.NET MVC 1 Overview 4
ASP.NET MVC 2 Overview 4
ASP.NET MVC 3 Overview 5
Razor View Engine 5
Validation Improvements 8
.NET 4 Data Annotation Support 8
Streamlined Validation with Improved Model Validation 8
Rich JavaScript Support 9
Unobtrusive JavaScript 9
jQuery Validation 9
JSON Binding 9
Advanced Features 10
Dependency Resolution 10
Global Action Filters 10
MVC 3 Feature Summary: Easier at All Levels 10
Creating an MVC 3 Application 11
Software Requirements for ASP.NET MVC 3 11
Installing ASP.NET MVC 3 11
Installing the MVC 3 Development Components 11
Installing MVC 3 on a Server 12
Creating an ASP.NET MVC 3 Application 12
The New ASP.NET MVC 3 Dialog 14
Application Templates 15
View Engines 15
Testing 15
Understanding the MVC Application Structure 18
ASP.NET MVC and Conventions 21
Convention over Confi guration 21
Conventions Simplify Communication 22
Summary 22
CHAPTER 2: CONTROLLERS 23
The Controller’s Role 23
A Brief History of Controllers 24
A Sample Application: The MVC Music Store 25
Controller Basics 29
A Simple Example: The Home Controller 29
Writing Your First (Outrageously Simple) Controller 32
Creating the New Controller 32
Writing Your Action Methods 33
A Few Quick Observations 35
Parameters in Controller Actions 35
Summary 37
CHAPTER 3: VIEWS 39
What a View Does 40
Specifying a View 42
Strongly Typed Views 43
View Models 45
Adding a View 46
Understanding the Add View Dialog Options 46
Customizing the T4 View Templates 49
Razor View Engine 50
What is Razor? 50
Code Expressions 52
Html Encoding 53
Code Blocks 54
Razor Syntax Samples 55
Implicit Code Expression 55
Explicit Code Expression 56
Unencoded Code Expression 56
Code Block 56
Combining Text and Markup 56
Mixing Code and Plain Text 57
Escaping the Code Delimiter 57
Server Side Comment 58
Calling a Generic Method 58
Layouts 58