ENGLISH

Exploring Blazor: Creating Server-side and Client-side Applications in .NET 7

Book information

Publisher
Apress
Year
2022
ISBN
1484287673, 9781484287675
Language
english
Format
PDF
Filesize
3 MB (2842605 bytes)
Edition
2
Pages
158\151
Time added
2023-01-11 12:12:37

Description

Build and develop web applications with Blazor in C#. This book covers both server-side and client-side Blazor, along with its latest features and the structure of the technology. You’ll see that Blazor is a web UI framework based on C#, Razor, and HTML, and how it runs front-end logic using C#, either on the server or on the browser, using WebAssembly.  This new edition not only covers the new structure for the Blazor environment, it also demonstrates the latest features, such as adding API features to a Blazor server project; creating code-behind files for C# and CSS; new ways to pick, save, and handle files in Blazor; and much more. The code and project layout have been updated in .NET 7 for this new edition.  The book starts with an introduction to Blazor, along with its various categories and its basics and syntax, including Razor syntax implementation. You will go through Blazor navigation and components, and learn its life cycle events and other components. You will learn features specific to each Blazor type. You will see how Blazor works with storage, files, and JavaScript, and you will create a Blazor code library. You will also create web applications in Blazor using practical implementations and real-life scenarios for both the server side and the client side. After reading this book, you will be able to build web applications with Blazor in C#11 and .NET Core 7.0. What You Will Learn Bind data and handle events in C# BlazorHandle components and page navigation in BlazorConnect Blazor front-end to APIsInteract with files using BlazorUnderstand the layout of Visual Studio Blazor project templates    Who This Book Is For  C# and .NET Core developers. Table of Contents About the Author About the Technical Reviewer Introduction Chapter 1: Introduction to Blazor What Is Blazor? What Is WebAssembly? Blazor Types Summary Chapter 2: Razor Syntax and the Basics of Blazor Differences Between Razor and Blazor Syntax Comments Sections Blazor Binds Binding to an Element Events Event Arguments Page and Component Lifecycle Events Summary Chapter 3: Blazor Components and Navigation Pages and Navigation Components Parameters Custom Events in Components Custom Binds in Components Layouts Summary Chapter 4: Specifics of Different Types of Blazor Default Template Overview Blazor Server-Side Template Blazor Client-Side (WebAssembly) Template Injection Static Values Calling APIs Adding the API Controller Blazor Hosted Basic Form Example for Two Types of Blazor Multiple Select Example Summary Chapter 5: General Blazor Interact with JavaScript Code-Behind Files Local Storage Pick and Save Files Creating a Blazor Code Library Background Tasks Countdown Timer Example Error Boundaries Summary Chapter 6: Practice Tasks for Server-Side Blazor Task 1 Description Resources Solution Task 2 Description Solution Summary Chapter 7: Practice Tasks for Client-Side Blazor Task 1 Description Solution Age Calculator Solution Cylinder Surface Area Calculator Trapezoid Area Calculator Triangle Area Calculator Rectangle Area Calculator Task 2 Description Solution Summary Chapter 8: Practice Tasks for the Blazor Hosted Version Task 1 Description Resources Solution Summary Index

Similar books