Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 507 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
507
Dung lượng
25,96 MB
Nội dung
[...]... ASP.NET MVC: BUILDING THE NUGET.ORG WEBSITE May the Source Be with You WebActivator ASP.NET Dynamic Data Exception Logging Profiling Data Access EF Code-Based Migrations Membership Other Useful NuGet Packages T 4MVC WebBackgrounder Lucene.NET AnglicanGeek.MarkdownMailer Ninject Summary INDEX 40 2 40 4 40 8 41 0 41 0 41 4 41 4 41 6 41 6 41 7 41 9 42 1 42 3 42 4 42 5 42 6 43 0 43 1 43 4 43 4 43 6 43 8 43 8 43 8 43 9 43 9 44 0 44 0... Miscellaneous Features Open Source Release Creating an MVC4 Application Software Requirements for ASP.NETMVC4 Installing ASP.NETMVC4 Installing the MVC4 Development Components Installing MVC4 on a Server Creating an ASP.NETMVC4 Application The New ASP.NETMVC4 Dialog Application Templates View Engines Testing The MVC Application Structure ASP.NETMVC and Conventions Convention over Configuration... Code Delimiter Server-Side Comment Calling a Generic Method Layouts ViewStart Specifying a Partial View Summary 31 31 34 36 37 40 40 42 43 43 46 47 48 49 51 52 54 54 55 57 57 59 61 62 63 63 63 64 64 64 65 65 65 66 66 69 69 70 xvi ftoc.indd xvi 9/11/2012 2:59 :44 PM CONTENTS CHAPTER 4: MODELS Modeling the Music Store Scaffolding a Store Manager What Is Scaffolding? Empty Controller Controller with Empty... 9/11/2012 3:00:13 PM CONTENTS FOREWORD INTRODUCTION CHAPTER 1: GETTING STARTED A Quick Introduction to ASP.NETMVC How ASP.NETMVC Fits in with ASP.NET The MVC Pattern MVC as Applied to Web Frameworks The Road to MVC 4 ASP.NET MVC 1 Overview ASP.NETMVC 2 Overview ASP.NETMVC 3 Overview MVC4 Overview ASP.NET Web API Enhancements to Default Project Templates Mobile Project Template using jQuery Mobile... 133 1 34 1 34 1 34 135 135 135 135 137 139 140 143 145 146 147 148 149 150 150 152 155 155 155 156 157 157 157 157 160 162 167 167 169 171 xix ftoc.indd xix 9/11/2012 2:59 :45 PM CONTENTS Threat Summary Preventing Cookie Theft with HttpOnly Threat: Over-Posting Threat Summary Preventing Over-Posting with the Bind Attribute Threat: Open Redirection Threat Summary Protecting Your ASP.NETMVC 1 and MVC 2... Values Overflow Parameters More Examples of URL Generation with the Route Class 239 240 242 244 244 Under the Hood: How Routes Tie Your URL to an Action 245 The High-Level Request Routing Pipeline RouteData Custom Route Constraints Using Routing with Web Forms Summary 246 246 246 247 248 xxi ftoc.indd xxi 9/11/2012 2:59 :45 PM CONTENTS CHAPTER 10: NUGET Introduction to NuGet Installing NuGet Adding a Library... informative tour of ASP.NETMVC 4! WHO THIS BOOK IS FOR Professional ASP.NET MVC4 is designed to teach ASP.NET MVC, from a beginner level through advanced topics If you are new to ASP.NET MVC, this book gets you started by explaining the concepts, and then helps you apply them through plenty of hands-on code examples The authors have taught thousands of developers how to get started with ASP.NETMVC and know... is concerned with introducing the MVC pattern and how ASP.NETMVC implements that pattern Chapter 1, “Getting Started,” helps you get started with ASP.NETMVC 3 development It explains what ASP.NETMVC is and how ASP.NET MVC4 fits in with the previous two releases Then, after making sure you have the correct software installed, you’ll begin creating a new ASP.NET MVC4 application Chapter 2, “Controllers,”... 2012 Professional) Visual Studio 2012 includes ASP.NET MVC4 Visual Studio and Visual Studio Express are available from the following locations: ‰ Visual Studio: www.microsoft.com/vstudio ‰ Visual Studio Express: www.microsoft.com/express/ You can also use ASP.NETMVC4 with Visual Studio 2010 SP1 ASP.NETMVC4 is a separate installation for Visual Studio 2010, available at the following location: ‰ ASP.NET. .. Action and Result Filters Exception Filters Providing Custom Results Summary 321 321 322 322 323 327 328 328 328 329 330 331 332 333 333 3 34 335 335 339 341 342 342 342 343 348 350 3 54 3 54 356 357 358 358 358 358 359 360 360 361 361 363 xxiv ftoc.indd xxiv 9/11/2012 2:59 :45 PM CONTENTS CHAPTER 15: ADVANCED TOPICS Mobile Support Adaptive Rendering The Viewport Meta Tag Adaptive Styles Using CSS Media Queries . 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 4 3
ASP. NET MVC 1 Overview 4
ASP. NET. for ASP. NET MVC 4 17
Installing ASP. NET MVC 4 18
Installing the MVC 4 Development Components 18
Installing MVC 4 on a Server 18
Creating an ASP. NET MVC 4