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.

This article dives into Session, ViewState, QueryString, TempData, Hidden Fields, and Cookies, explaining their differences, use cases, advantages, and limitations. Learn when to use each technique for optimal performance, security, and data persistence in your web applications. Choose the right method based on storage location, lifespan, and security needs.

Understand the key differences between C#, ASP.NET MVC, and ASP.NET Core. This guide clarifies their roles in web development, highlighting C# as a programming language, ASP.NET MVC as a legacy Windows-only framework, and ASP.NET Core as a modern, cross-platform solution. Learn about their architecture, performance, and suitability for different project types, from existing systems to cutting-edge cloud applications. Choose the right tool for your next .NET project!

Learn how to implement single and multiple record deletion in ASP.NET GridView using checkboxes, client-side validation, and a SQL Server stored procedure. This tutorial covers UI design with a GridView, JavaScript for select-all functionality and validation, server-side C# code for deletion, and the SQL stored procedure.

Learn how to dynamically load multiple ASCX user controls in a single ASP.NET Web Forms page (ASPX) using the LoadControl method and a switch-case statement. This approach promotes code reusability, reduces redundancy, and enhances maintainability by loading controls based on parameters like QueryString values. Discover how to implement this technique with a practical example, including error handling and optimization tips for large-scale applications. Improve your ASP.NET development skills and create more modular and efficient web applications.

Learn about MVC (Model-View-Controller) and its advantages over Web Forms in ASP.NET development. MVC emphasizes separation of concerns, better maintenance, and testing. Discover how MVC uses controllers, models for business logic, and views for UI, compared to Web Forms' single code-behind approach.

This article explores common threats like job injection, privilege escalation, and resource abuse. Learn practical strategies for robust protection, including secure scheduling interfaces, input validation, least privilege, retry policies, monitoring, and infrastructure-level defenses.

Protect your ASP.NET Core Razor Pages and MVC applications from XSS attacks with Content Security Policy (CSP). This guide explains how CSP works, why it's crucial for security, and provides practical examples for implementation using middleware and the NWebsec library. Learn how to configure CSP headers, handle inline scripts with nonces, report violations, and establish best practices for a robust security posture.

Protect your ASP.NET MVC, ASP.NET Core, and Web API apps from SQL Injection! Learn practical C# strategies, parameterized queries, and secure coding practices to prevent data breaches and ensure robust security. Master best practices for a secure application!

Learn essential ASP.NET Core MVC data security practices, including HTTPS enforcement and authentication, encryption, XSS/CSRF prevention, and secure storage, to ensure safe and reliable web applications.

Implement UPI ID validation in ASP.NET Web Forms using JavaScript and AJAX. Validate UPI via backend API, display real-time feedback, and handle success or error responses for a seamless user experience.

This comprehensive article covers essential ASP.NET MVC concepts—from routing and controllers to Razor views, validation, filters, and deployment—offering best practices and examples to build secure, maintainable web applications efficiently.

A beginner-friendly ASP.NET MVC reference covering MVC architecture, routing, controllers, Razor views, model binding, validation, Entity Framework, and security.

Learn how to call a Web API from an ASP.NET MVC application with HttpClient, deserialize a JSON response, and display the results in a view.

In this article, we are going to learn how to Create Web API and consume Web API in Console Application. Basically, create Web API to share data with others or to get the data from others.

Learn how to create and transpose a DataTable in ASP.NET Web Forms using C#. This guide covers table creation, manual data entry, HTML rendering, and dynamic data transposition using StringBuilder.

Design an ASP.NET Web Forms dashboard using Visual Studio with default templates, adding icons, a sidebar, and top navigation. Enhance layout using Site Master, ASPX markup, and structured content sections.

Learn how to use RadioButtonList in ASP.NET WebForms, including its layout types (Horizontal, Vertical, Flow, Table), binding data from C# List, database tables, and manually added items. Also, discover JavaScript integration and best practices.

?To maintain ASP.NET sessions after an IIS restart, configure the session state to use SQL Server, State Server, or a distributed cache like Redis instead of the default in-memory storage.

This article covers data binding, displaying records, sorting, paging, and editing in GridView. Understand how to fetch data from a database, manipulate it using DataTables, and present it efficiently using ASP.NET GridView for a seamless user experience.

Learn how to call an AJAX function in ASP.NET Web Forms using WebMethod. This article covers client-side AJAX requests and server-side processing to enable seamless communication in a .NET Framework 4.7.2 application.

In this article, you will learn how to pass data across views in MVC.

This article discuss the View Variables, such as ViewData, ViewBag, TempData and Session in MVC

Learn how to load and bind nested JSON data to a dropdown in ASP.NET, covering both client-side and server-side techniques for dynamic data binding and efficient JSON parsing in web applications.

This article demonstrates how to read Excel files using Microsoft's Interop Excel library in a C# Windows application. It covers adding references, handling file extensions, and displaying Excel data in a DataGridView.

Configuration file is an important file in ASP.NET. Learn, what is a Web.Config file? What is in Web.config files? What are the different types of Configuration files in ASP.NET? Machine.config File vs Web.config file.

In this article you will learn about Filters in ASP.NET MVC 5.0. ASP.NET MVC Filters are used to inject extra logic at the different levels of MVC Framework request processing. Filters provide a way for cross cutting concern (logging, authorization, and caching).

The FileUpload control in ASP.NET enables users to upload files to the server easily. It features a text box and a browse button for file selection. The control supports multiple file uploads when set with the AllowMultiple property.

In this article, we explore integrating Bootstrap form controls within an AngularJS and ASP.NET MVC application. We cover essential features like date and time pickers, typeahead suggestions, and interactive elements such as popovers and tooltips.

ASP.NET Session State is a method for managing user data during a web session. It enables storing and retrieving session-specific information like user preferences, shopping carts, and login status.

Learn how ASP.NET session state stores user data across requests, including session variables, configuration, advantages, disadvantages, and accessing values across Web Forms pages.
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