Learn it from developers who built it.
Tutorials, how-tos and deep dives on AI, .NET, C#, cloud and developer tools, written by the community.

Route constraints in MVC define rules for matching incoming URLs to route templates, enhancing control over routing behavior. They specify conditions like data type, length, or regular expressions, ensuring only appropriate requests are routed to corresponding controller actions.

In this article we will learn what Authentication and Authorization is with a small demo of what we will accomplish by the end of this series.

In this article we will learn the purpose of HTML helpers in MVC. A HTML helper is a special type of method used to render HTML content in a view.

TempData is a temporary data storage mechanism in ASP.NET MVC, facilitating state management between HTTP requests. Stored in session variables, it aids in passing data between consecutive requests. TempData utilizes TempDataDictionary and ITempDataProvider interfaces.

Explore ASP.NET MVC 5's attribute-based routing, offering debugging ease, decoupling benefits, and flexible route configuration. Learn to optimize routing with RoutePrefix, Route Constraints, and Route Areas for efficient web application development.

MVC3, or Model-View-Controller version 3, is a web development framework by Microsoft, emphasizing separation of concerns. It divides applications into model, view, and controller layers, enhancing maintainability and scalability.

MVC applications rely on a routing system to handle URL requests, mapping them to controllers and actions. RouteConfig.cs defines routes, connected to Global.asax.cs. Routes can be added via RouteCollection or using MapRoute method. Static URL segments and custom variables enhance routing flexibility.

Display Mode Provider in MVC 5 Application facilitates adaptive rendering based on user agents. It utilizes DefaultDisplayMode and ContextCondition to insert modes for specific devices like Windows Phone, iPhone, and Android, enhancing responsive design.

Discover the intricacies of ASP.NET MVC Areas in the sixth installment of our series. Explore how Areas facilitate modularization and organization in MVC applications, optimizing code structure for scalability and maintainability.

In this article, we will learn how to enhance your ASP.NET MVC applications with Action Filters. Action Filters provide a powerful mechanism for injecting cross-cutting concerns such as logging, authentication, and caching into your controllers.

Understand the MVC life cycle from HTTP request to response. Learn about ASP.NET's Page class, IHttpHandler interface, and MVC's Controller. Explore RouteTable and UrlRoutingModule for routing requests. Dive into ControllerFactory, ActionMethod invocation, and ActionResult rendering like ViewResult.

In this article we will learn What are the different types of ActionResult in ASP.NET MVC, and when would you use each one?

View engines render HTML to the browser. ASP.Net MVC supports ASPX and Razor View Engines by default, with options for third-party engines. ASPX syntax mirrors ASP.Net web forms, while Razor offers a more modern approach, enhancing code readability and testability.

In this article, we will explore the fundamentals of Microsoft ASP.NET MVC 3 with the intuitive Razor View Engine. Learn how MVC architecture streamlines web development, delve into Razor syntax for clean, efficient code, and master view rendering for dynamic HTML generation.

The content explores the diverse return types available in an MVC controller within the ASP.NET framework. From rendering HTML views to returning JSON data or redirecting to different URLs, MVC controllers offer flexibility in responding to client requests.

In this article, we will learn to build a basic web application using MVC 4.0, a powerful framework for web development. Utilize ASP.NET and C# in Visual Studio to create a structured Model-View-Controller architecture.

In this article, you will learn about MVC patterns and ASP.NET MVC. MVC is an architectural pattern to develop enterprise applications.

A Web API Helper Page serves as a documentation hub, offering essential information about endpoints, parameters, and functionality. It acts as a reference guide for developers, aiding in the integration and utilization of the API within their applications.

Learn how to define model classes, configure database mappings, set up connection strings, and utilize Package Manager Console commands to manage migrations efficiently in your ASP.NET application.

Learn about the importance of validation in Web API development, including techniques like Model Validation and Fluent Validation. Explore how to implement validation rules using data annotations and the IValidatableObject interface, and discover how to create custom validation logic with action filters. Additionally, understand the role of JSON schema validation

Set up IIS to host your website without ASP.NET by configuring it to serve static content like HTML, CSS, and JavaScript files. Simplify server setup for non-dynamic websites with this approach.

ASP.NET MVC is a pattern dividing apps into Model, View, and Controller, offering advantages like modularity and control. It's recommended for large-scale apps, offering namespaces like System.Web.Mvc, and supports view engines like ASPX and Razor.

Learn to deploy ASP.NET MVC 5.0 applications on Internet Information Services (IIS) in this tutorial series. Discover the intricacies of publishing, configuring, and hosting your MVC project efficiently for web deployment.

Learn how to host a mobile website on Internet Information Services (IIS) by creating a virtual directory, setting permissions, and testing using desktop browsers or mobile emulators. This article serves as a prerequisite for testing mobile pages in emulators.

Learn to validate multiple tokens from different authentication providers in an ASP.NET 8 API. Configure authentication schemes for each provider, accommodating diverse token formats and validation requirements seamlessly.

This tutorial guides you through the process of converting a list of records into XML and inserting it into a single SQL column, streamlining data storage and retrieval in your application.

This tutorial guides you through the process of integrating Bootstrap into your MVC project, leveraging its responsive layout and pre-designed components to create visually appealing user interfaces.

This article provides a detailed guide on dynamically adding help/tooltip icons to form elements using jQuery UI modal or Bootstrap popover. The tooltips are fetched from a centralized location via Web API calls, allowing easy management and customization.

To generate a QR code with text around it using ASP.Net, leverage the QRCoder NuGet package. This code snippet demonstrates creating, customizing, and adding text to a QR code.

This content discusses native code generation, focusing on the process where the Just In Time (JIT) compiler converts MSIL code into native code for execution. It explains how the Native Image Generator (NGen.exe) creates and stores native code images, which can be loaded by the CLR instead of the original assembly
Everything on ASP.NET, not only its articles: the ASP.NET page →
Write an article and earn +1,000 SHARP when it is approved.
Write an article