Integrating third-party APIs into your web application enhances functionality by accessing external data and services. This article demonstrates integrating an API using AJAX in an ASP.NET Core Razor Pages app. It covers project setup, form design, making AJAX calls, and dynamically displaying data in a Bootstrap table.
Cross-Site Request Forgery (CSRF) is a type of attack that can force a user's browser to send unwanted requests to a web application on which the user is authenticated, potentially leading to unintended actions on the user's behalf.
Build a secure ASP.NET Core MVC blog app with Entity Framework Core. Follow steps to create models, controllers, views, and implement client-side validation and sanitization to thwart XSS attacks. Access the GitHub project for code reference and ensure your application is protected against common vulnerabilities.
Learn how to define C# enums with custom string values using EnumMember and DataContract, then convert between enum values and their string representations.
ASP.NET Core Identity is a comprehensive membership system for adding login functionality to your ASP.NET Core applications. It provides a robust framework for managing users, passwords, roles, claims, tokens, email confirmation, and more.
Learn C# memory optimization techniques including garbage collection tuning, Span and Memory, unsafe pointers, stack allocation, finalizers, and object pooling.
Master asynchronous programming in C# with the async and await patterns. Learn how to write non-blocking code, improve application performance, and handle concurrency. Understand Task-based asynchrony, exception handling, and preventing deadlocks, enabling efficient and responsive applications.
Generics in C# allow you to define classes, methods, and interfaces with a placeholder for the type of data they store or use. This flexibility enables you to write more general and reusable code.
Caching is a crucial technique for improving the performance and responsiveness of web applications by storing frequently accessed data in memory. In this article, we'll walk through a complete practical example of implementing and using an in-memory cache in an ASP.NET Core Web API project.
In C#, methods often take parameters that are passed in a specific order defined by their method signature. However, there are cases where you might want to reverse the order of parameters when calling a method. One approach to achieve this is by using named arguments.
In modern web applications, authentication plays a crucial role in securing resources and ensuring that only authorized users can access certain parts of the application. One common way to handle authentication is by using tokens, such as JSON Web Tokens (JWTs).
Angular is a powerful framework for building dynamic web applications with JavaScript, HTML, and CSS. One of its key features is the ability to create custom directives, which allow developers to extend HTML with new attributes and behaviors. The process of creating a custom attribute directive in Angular.
Learn how Angular promises and RxJS observables handle asynchronous HTTP requests, errors, and streams of data, with examples of when to use each approach.
Learn how Angular view encapsulation scopes component styles using the Emulated, None, and ShadowDom modes, and when to use each option.
Angular is a popular framework for building dynamic web applications, and one of its key features is its powerful Forms module. Angular offers two types of forms: template-driven forms and reactive forms. In this article, we'll delve into reactive forms in Angular, exploring their benefits, how to create them, and how to work with them effectively.
ASP.NET Core is a powerful framework for building web APIs, allowing developers to create robust and scalable applications. One of the key features of modern web development is the integration of third-party APIs, which provide access to external services and data.
In software development and engineering, certain guiding principles serve as beacons of efficiency and effectiveness. Among these principles, DRY, YAGNI, and KISS stand out as fundamental pillars that shape the way engineers approach problem-solving and project development.
Test-Driven Development (TDD) is a methodology in software development that emphasizes writing tests before writing the actual implementation code. The code is thoroughly tested and meets the specified requirements. How to implement TDD in an ASP.NET Core application using a simple CRUD scenario for managing a list of books.
In ASP.NET Core, middleware components are used to handle requests and responses as they flow through the application's pipeline. These middleware components can be chained together to process requests and responses in a specific order. Transferring data between middleware components can be achieved using various techniques.
In ASP.NET Core, routing to controller actions is facilitated through attributes that define route templates, mapping incoming HTTP requests to specific actions. Multiple conventional routes can be established in the Startup.cs file using the MapControllerRoute method.
Learn the core components of full-stack web development and how ASP.NET Core 8 MVC uses models, views, controllers, Razor, C#, APIs, and databases to build web applications.
Software development is becoming increasingly complex. With the growing demands for sophisticated and user-centric applications, traditional approaches to software engineering are no longer sufficient. This has led to the emergence of goal-based software engineering, a paradigm that focuses on aligning software development efforts with specific objectives and user needs.
In ASP.NET Core MVC, you can pass temporary data from one controller to another using TempData. TempData is a dictionary that can be used to share data between controllers during the current request and the subsequent redirect. Here's how you can achieve this:
DevSocialUpcoming · 3rd editionAI Agents ConferenceNov 23–27, 2026Live onlineMembers only16days leftRegisterMembers onlyWrite an article and earn +1,000 SHARP when it is approved.
Write an article