Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Modern Web Development with ASP.NET Core 3

You're reading from   Modern Web Development with ASP.NET Core 3 An end to end guide covering the latest features of Visual Studio 2019, Blazor and Entity Framework

Arrow left icon
Product type Paperback
Published in Jun 2020
Publisher Packt
ISBN-13 9781789619768
Length 802 pages
Edition 2nd Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Ricardo Peres Ricardo Peres
Author Profile Icon Ricardo Peres
Ricardo Peres
Arrow right icon
View More author details
Toc

Table of Contents (26) Chapters Close

Preface 1. Section 1: The Fundamentals of ASP.NET Core 3
2. Getting Started with ASP.NET Core FREE CHAPTER 3. Configuration 4. Routing 5. Controllers and Actions 6. Views 7. Section 2: Improving Productivity
8. Using Forms and Models 9. Implementing Razor Pages 10. API Controllers 11. Reusable Components 12. Understanding Filters 13. Security 14. Section 3: Advanced Topics
15. Logging, Tracing, and Diagnostics 16. Understanding How Testing Works 17. Client-Side Development 18. Improving Performance and Scalability 19. Real-Time Communication 20. Introducing Blazor 21. gRPC and Other Topics 22. Application Deployment 23. Assessments 24. Other Books You May Enjoy Appendix A: The dotnet Tool

Understanding the MVC pattern

Let's go back to ASP.NET now. For those of you that are still working with Web Forms, what is this MVC thing anyway, and where did it come from?

Let's face it: it was pretty easy to do terrible things in Web Forms, such as add lots of sensitive code in the page (which wouldn't be compiled until the page was accessed by the browser), adding complex business logic to a page class, having several megabytes of code in View State going back and forth on every request, and so on. There was no mechanism at all, other than the developer's discretion, to do things the right way. Plus, it was terrible to unit test it, because it relied on browser submission (POST) and JavaScript to have things working properly, such as binding actions to event handlers and submitted values to controls. There had to be a different solution, and in fact, there was.

The model-view-controller (MVC) design pattern was defined in the late 1970s...

You have been reading a chapter from
Modern Web Development with ASP.NET Core 3 - Second Edition
Published in: Jun 2020
Publisher: Packt
ISBN-13: 9781789619768
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image