ASP.NET Core

12345678910...Last
Perform Master Detail CRUD operations in ASP.NET Core (Part 5)
In Part 4 of this article series we added the Main view, _Teams partial, and _TeamMembers partial. Recollect that _Teams partial and _TeamMembers partial show a Team or TeamMember record in read-only, insert, or update mode. This is done with the help of six partials - three belonging to _Teams partial and three belonging to _TeamMembers partial.
Posted On : 12 Apr 2021
Perform Master Detail CRUD operations in ASP.NET Core (Part 4)
In Part 2 and Part 3 of this article series we completed TeamsComtroller and TeamMembersController respectively. All of the controller actions that we wrote so far return Main view. They also supply a MasterDetailViewModel object to the Main view. In this part we will begin developing a set of views and partials that renders the UI of the application.
Posted On : 05 Apr 2021
Perform Master Detail CRUD operations in ASP.NET Core (Part 3)
In the previous part of this article series you created the TeamsController that performs CRUD operations on the Teams table. In this part you will continue to develop the app by creating TeamMembersController. The TeamMembersController performs CRUD operations on the TeamMembers table. Begin by adding TeamMembersController class into the Controllers folder. The following figure shows both the controllers in the Controllers folder.
Posted On : 22 Mar 2021
Perform Master Detail CRUD operations in ASP.NET Core (Part 2)
In the previous part of this article series you were introduced to the sample application we are building. You also created the EF Core model consisting of Team, TeamMember, and AppDbContext classes. In this part we will add TeamsController to the web application perform CRUD operations on the Teams table. Open the same project that we created in the previous part and add two enumerations to the Models folder named DataDisplayModes and DataEntryTargets.
Posted On : 08 Mar 2021
Perform Master Detail CRUD operations in ASP.NET Core (Part 1)
Master-detail pages are quite common in many web applications. There are various approaches to building master-detail pages including server side, client side, and hybrid. There are also many third-party controls and plugins that can be used to accomplish this task. It would be interesting for beginners to learn and understand how master-detail pages work and how they can be developed in ASP.NET Core. To that end this multipart article explains how master-detail pages can be developed using purely server side code without relying on any third-party component or library.
Posted On : 01 Mar 2021
Client Side Form Validations Using TypeScript For Beginners
Validating a data entry form before submitting it to the server is one of the most common task in web applications. In ASP.NET Core you can easily do that with the help of validation attributes and tag helpers. However, at times you need to take charge of the client side validation process and roll out your own strategy to validate the data being submitted to the server. For example, you might be building a SPA and want to validate data using HTML5 features. To that end this article discusses how HTML5 form validation features can be used in TypeScript and ASP.NET Core.
Posted On : 08 Feb 2021
Understand Cascading Parameters and Cascading Values in Blazor
In the previous article we discussed arbitrary parameters and attribute splatting. Now it's time to understand one more aspect of passing values to a Blazor component from the external world - Cascading Parameters and Cascading Values. In all the examples discussed so far, we explicitly set a parameter value from the parent component. This means if we want to pass a value to, say, ten components, we must set a parameter of all the ten components. In such cases Cascading Parameters and Cascading Values come handy. The remainder of this article discusses how.
Posted On : 18 Jan 2021
Use Arbitrary Parameters and Attribute Splatting in Blazor
In the previous article we discussed how parameters can be passed to Blazor component. In the examples discussed so far you created a fixed number of parameters (for example, Value parameter of the Message component) and assigned them some value from the parent component (Index.razor in our examples). What if you want to pass arbitrary number of parameters to a component? That means you won't the exact parameters at development time. The parent component (Index.razor) will set arbitrary parameters on a child component (Message.razor) when the child component is used. This article explores how this can be accomplished.
Posted On : 11 Jan 2021
Pass Parameters to Blazor Components
Blazor apps consist of one or more components. A component can receive data from an external source through parameters. In this article you will learn to add parameters to a Blazor component. You will also learn various ways of setting the parameter values. Begin by creating a new Blazor Server App project in Visual Studio.
Posted On : 29 Dec 2020
Separate UI and Code in Blazor
Blazor apps consist of one or more components. Components reside in .razor files and consist of UI markup and C# code. When you create a new Blazor server or WebAssembly project it stores component UI and code in a single file. However, at times this single file approach might not be adequate. Luckily, you can separate your UI markup and C# code easily. This article shows how.
Posted On : 07 Dec 2020
12345678910...Last


Subscribe to our newsletter

Get monthly email updates about new articles, tutorials, code samples, and how-tos getting added to our knowledge base.

  

Receive Weekly Updates