Details

Professional ASP.NET MVC 5


Professional ASP.NET MVC 5


1. Aufl.

von: Jon Galloway, Brad Wilson, K. Scott Allen, David Matson

32,99 €

Verlag: Wiley
Format: PDF
Veröffentl.: 15.07.2014
ISBN/EAN: 9781118794722
Sprache: englisch
Anzahl Seiten: 624

DRM-geschütztes eBook, Sie benötigen z.B. Adobe Digital Editions und eine Adobe ID zum Lesen.

Beschreibungen

<p><b>ASP.NET MVC insiders cover the latest updates to the technology in this popular Wrox reference</b></p> <p>MVC 5 is the newest update to the popular Microsoft technology that enables you to build dynamic, data-driven websites. Like previous versions, this guide shows you step-by-step techniques on using MVC to best advantage, with plenty of practical tutorials to illustrate the concepts. It covers controllers, views, and models; forms and HTML helpers; data annotation and validation; membership, authorization, and security.</p> <ul> <li>MVC 5, the latest version of MVC, adds sophisticated features such as single page applications, mobile optimization, and adaptive rendering</li> <li>A team of top Microsoft MVP experts, along with visionaries in the field, provide practical advice on basic and advanced MVC topics</li> <li>Covers controllers, views, models, forms, data annotations, authorization and security, Ajax, routing, ASP.NET web API, dependency injection, unit testing, real-world application, and much more</li> </ul> <p><i>Professional ASP.NET MVC 5</i> is the comprehensive resource you need to make the best use of the updated Model-View-Controller technology.</p>
<p>Foreword xxvii</p> <p>Introduction xxix</p> <p><b>Chapter 1: Getting Started 1</b></p> <p>A Quick Introduction to ASP.NET MVC 1</p> <p>ASP.NET MVC 5 Overview 11</p> <p>Installing MVC 5 and Creating Applications 16</p> <p>The MVC Application Structure 24</p> <p>Summary 29</p> <p><b>Chapter 2: Controllers 31</b></p> <p>The Controller’s Role 31</p> <p>A Sample Application: The MVC Music Store 34</p> <p>Controller Basics 38</p> <p>Summary 47</p> <p><b>Chapter 3: Views 49</b></p> <p>The Purpose of Views 50</p> <p>View Basics 50</p> <p>Understanding View Conventions 54</p> <p>Strongly Typed Views 55</p> <p>View Models 58</p> <p>Adding a View 60</p> <p>The Razor View Engine 63</p> <p>Specifying a Partial View 73</p> <p>Summary 74</p> <p><b>Chapter 4: Models 75</b></p> <p>Modeling the Music Store 76</p> <p>Scaffolding a Store Manager 80</p> <p>Editing an Album 97</p> <p>Model Binding 103</p> <p>Summary 107</p> <p><b>Chapter 5: Forms and Html Helpers 109</b></p> <p>Using Forms 110</p> <p>HTML Helpers 114</p> <p>Other Input Helpers 129</p> <p>Rendering Helpers 130</p> <p>Summary 135</p> <p><b>Chapter 6: Data Annotations and Validation 137</b></p> <p>Annotating Orders for Validation 138</p> <p>Custom Validation Logic 150</p> <p>Display and Edit Annotations 155</p> <p>Summary 158</p> <p><b>Chapter 7: Membership, Authorization, and Security 159</b></p> <p>Security: Not fun, But Incredibly Important 159</p> <p>Using the Authorize Attribute to Require Login 162</p> <p>Using AuthorizeAttribute to Require Role Membership 172</p> <p>Extending User Identity 174</p> <p>External Login via OAuth and OpenID 175</p> <p>Understanding the Security Vectors in a Web Application 182</p> <p>Proper Error Reporting and the Stack Trace 207</p> <p>Security Recap and Helpful Resources 209</p> <p>Summary 211</p> <p><b>Chapter 8: Ajax 213</b></p> <p>jQuery 214</p> <p>Ajax Helpers 225</p> <p>Client Validation 233</p> <p>Beyond Helpers 241</p> <p>Improving Ajax Performance 253</p> <p>Summary 255</p> <p><b>Chapter 9: Routing 257</b></p> <p>Uniform Resource Locators 258</p> <p>Introduction to Routing 259</p> <p>Inside Routing: How Routes Generate URLs 288</p> <p>Inside Routing: How Routes Tie Your URL to an Action 294</p> <p><b>Chapter 10: Nuget 299</b></p> <p>Introduction to NuGet 299</p> <p>Adding a Library as a Package 301</p> <p>Creating Packages 312</p> <p>Publishing Packages 325</p> <p>Summary 332</p> <p><b>Chapter 11: Asp.Net Web Api 333</b></p> <p>Defining ASP.NET Web API 334</p> <p>Getting Started with Web API 335</p> <p>Writing an API Controller 335</p> <p>Configuring Web API 342</p> <p>Adding Routes to Your Web API 346</p> <p>Binding Parameters 347</p> <p>Filtering Requests 349</p> <p>Enabling Dependency Injection 350</p> <p>Exploring APIs Programmatically 350</p> <p>Tracing the Application 352</p> <p>Web API Example: ProductsController 352</p> <p>Summary 354</p> <p><b>Chapter 12: Single Page Applications With Angularjs 355</b></p> <p>Understanding and Setting Up AngularJS 356</p> <p>Building the Web API 363</p> <p>Building Applications and Modules 364</p> <p>Summary 384</p> <p><b>Chapter 13: Dependency Injection 385</b></p> <p>Software Design Patterns 385</p> <p>Dependency Resolution in MVC 395</p> <p>Dependency Resolution in Web API 402</p> <p>Summary 405</p> <p><b>Chapter 14: Unit Testing 407</b></p> <p>Understanding Unit Testing and Test-Driven Development 408</p> <p>Building a Unit Test Project 412</p> <p>Advice for Unit Testing Your ASP.NET MVC and ASP.NET Web API Applications 415</p> <p>Summary 427</p> <p><b>Chapter 15: Extending Mvc 429</b></p> <p>Extending Models 430</p> <p>Extending Views 442</p> <p>Extending Controllers 446</p> <p>Summary 458</p> <p><b>Chapter 16: Advanced Topics 461</b></p> <p>Mobile Support 461</p> <p>Advanced Razor 473</p> <p>Advanced View Engines 476</p> <p>Advanced Scaffolding 482</p> <p>Advanced Routing 486</p> <p>Advanced Templates 492</p> <p>Advanced Controllers 498</p> <p>Summary 520</p> <p><b>Chapter 17: Real-World Asp.Net Mvc: Building The Nuget.Org Website 521</b></p> <p>May the Source Be with You 522</p> <p>WebActivator 526</p> <p>ASP.NET Dynamic Data 527</p> <p>Exception Logging 530</p> <p>Profiling 532</p> <p>Data Access 535</p> <p>EF Code–Based Migrations 536</p> <p>Deployments with Octopus Deploy 539</p> <p>Automated Browser Testing with Fluent Automation 540</p> <p>Other Useful NuGet Packages 541</p> <p>Summary 544</p> <p>Appendix: ASP.NET MVC 5.1 545</p> <p>ASP.NET MVC 5.1 Release Description 545</p> <p>Enum Support in ASP.NET MVC Views 549</p> <p>Attribute Routing with Custom Constraints 553</p> <p>Bootstrap and JavaScript Enhancements 558</p> <p>Summary 563</p> <p>Index 565</p>
<p><b>Jon Galloway</b> works at Microsoft as a Technical Evangelist focused on ASP.NET MVC.</p> <p><b>Brad Wilson</b> has been a professional software developer for more than 20 years, with 10 years in web development.</p> <p><b>K. Scott Allen</b> is the founder of OdeToCode LLC, which provides custom development, consulting, and mentoring services for clients worldwide.</p> <p><b>David Matson</b> is a software developer at Microsoft. He is part of the MVC 5 and Web API 2 product team.</p>
<p><b>Build dynamic, data-driven websites with MVC 5</b></p> <p>MVC 5 is the latest update to Microsoft’s popular MVC (Model-View-Controller) technology—an established web application framework that enables fast, TDD-friendly development. MVC allows developers to build dynamic, data-driven websites with sophisticated features, such as single page applications, mobile optimization, adaptive rendering, and more. Updated to cover new post-release features in MVC 5.1 and 5.2, this book offers step-by-step techniques to use MVC to its full advantage. Written by top ASP.NET MVC experts at Microsoft, along with visionaries in the field, the book’s practical tutorials reinforce concepts and allow developers to create their own applications.</p> <p><i>Professional ASP.NET MVC 5:</i></p> <ul> <li>Explains how the ASP.NET MVC framework differs from other file-per-page web frameworks</li> <li>Covers controllers, views, models, forms, HTML helpers, data annotation and validation, membership, authorization, security, and routing</li> <li>Includes new coverage of One ASP.NET project templates, ASP.NET Identity, Bootstrap and Attribute routing</li> <li>Discusses essential topics such as Ajax, NuGet, dependency injection, unit testing, and extending MVC</li> <li>Features step-by-step guidance, real-world examples, and numerous code samples to move readers from the basic to the advanced</li> </ul> <p><b>Wrox Professional guides</b> are planned and written by working programmers to meet the real-world needs of programmers, developers, and IT professionals. Focused and relevant, they address the issues technology professionals face every day. They provide examples, practical solutions, and expert education in new technologies, all designed to help programmers do a better job.</p> <p><b>Programmer Forums</b><br /> Join our Programmer to Programmer forums to ask and answer programming questions about this book, join discussions on the hottest topics in the industry, and connect with fellow programmers from around the world.</p> <p><b>Code Downloads</b><br /> Take advantage of free code samples from this book, as well as code samples from hundreds of other books, all ready to use.</p> <p><b>Read More</b><br /> Find articles, e-books, sample chapters, and tables of contents for hundreds of books, and more reference resources on programming topics that matter to you.</p>

Diese Produkte könnten Sie auch interessieren:

Distributed Object-Oriented Architectures
Distributed Object-Oriented Architectures
von: Josef Stepisnik
PDF ebook
58,00 €
Web 2.0
Web 2.0
von: Hannes Duschinski
PDF ebook
48,00 €
Streaming-Video und Web-TV
Streaming-Video und Web-TV
von: Michael Bösken
PDF ebook
48,00 €