ASP.NET tutorials provide basic and advanced ASP.NET concepts. ASP.NET tutorials are for beginners and experts alike.

ASP.NET is a web framework designed and developed by Microsoft. It is used to develop websites, web applications and web services. It offers fantastic integration of HTML, CSS, and JavaScript. First released in January 2002. Built on top of the Common Language Runtime (CLR), it allows programmers to write code in any supported .NET language.

Managed Code

Code written to obtain runtime services from a managed runtime, such as the .NET Framework’s common language runtime (CLR), is called managed code. It is always implemented by the managed runtime rather than directly by the operating system. The managed runtime provides various types of services such as garbage collection, type checking, exception handling, scope checking, etc. for automated coding without programmer intervention. It also provides memory allocation, type safety, and more to your code. Applications written in languages ​​such as Java, C#, VB.Net, etc. always target runtime services for managing their execution, and code written in these languages ​​is called managed code.

CLR and IL

The Common Language Runtime( CLR) plays a pivotal part in executing law. The CLR is a element of the. NET frame responsible for managing the prosecution of programs written in colorful. NET languages. It provides features similar as memory operation, exception running, security, and just- by- time( JIT) compendium.


Metadata is data about data or documentation of information that users need. Metadata is one of the most important aspects of a data warehouse.

JIT Compilation

The Just-In-Time (JIT) compiler is an integral part of the JRE, or Java Runtime Environment, which is responsible for optimizing the performance of Java-based applications at runtime. Compilers are one of the key aspects that determine the performance of an application for both end users and application developers.

Automatic Memory Management

Automatic memory management (AMM) is a technology in which an operating system or application automatically manages memory allocation and deallocation. This means that programmers do not have to write code to perform memory management tasks when developing applications.


CLR stands for Common Language Runtime and is a runtime environment. It acts as a layer between the operating system and applications written in .NET languages ​​that conform to the Common Language Specification (CLS). The main function of the common language runtime (CLR) is to convert managed code to native code and then run programs. Managed code is compiled only when needed. That is, when each function is called, it translates the appropriate command. Just-in-time (JIT) common language runtime (CLR) compilation converts intermediate language (MSIL) to native code as needed during application execution.

Visual Studio IDE

Visual Studio .NET is an integrated development environment (IDE) developed by Microsoft for building a wide range of applications, including desktop, web, mobile, and cloud-based applications. It is a comprehensive toolset that provides developers with a rich set of features and tools to streamline the development process.

The Framework Class Library

The Framework Class Library or FCL provides the system functionality in the .NET Framework as it has various classes, data types, interfaces, etc. to perform multiple functions and build different types of applications such as desktop applications, web applications, mobile applications, etc. The Framework Class Library is integrated with the Common Language Runtime (CLR) of the .NET framework and is used by all the .NET languages such as C#, F#, Visual Basic .NET, etc.

ASP.NET Object Overview

The term “NET objects” refers to the objects that are part of the .NET framework used for building web applications. ASP.NET is a web development framework provided by Microsoft, and it is based on the .NET framework.

NET web services

Software developers struggled to create software components that could be called remotely over LANs and the Internet. Several technologies have emerged along the way, but some of them have not been fully successful due to many limitations and obstacles, such as unreliable communication over the Internet or computer networks running on different types of hardware and operating systems.


Windows Forms is a graphical user interface (GUI) framework that is part of the Microsoft .NET framework. It provides a way to create desktop applications for Windows using a drag-and-drop design approach. Windows Forms (WinForms) allows developers to build Windows-based applications with a rich set of controls, events, and visual elements.

ASP.NET Features

ASP.NET is a popular web development frame developed by Microsoft. It provides a robust and protean platform for erecting web operations and services. Then are some crucial features of ASP.NET

  1. Language Independence.
  2. Server-side Execution.
  3. Integrated Development Environment (IDE).
  4. Model-View-Controller (MVC) Architecture.
  5. Web Forms.
  6. ASP.NET Core.
  7. Rich Controls and Component Model.
  8. Data Access.
  9. Security.
  10. Caching and Performance Optimization.
  11. Extensibility.

Change the Home Directory in IIS

  1. In IIS Manager, expand Local Computer, expand the Web Sites directory, right-click the Web site you want to change, and click Stop.
  2. Using Windows Explorer, rename the LocalDrive:\Inetpub\Wwwroot directory to the desired name. Alternatively, you can copy the entire \Wwwroot directory tree to a new location.
  3. Right-click on your website in IIS Manager and select Properties.
  4. Click the Home Directory tab, and in the Content for this resource section, select Redirect to a directory on this computer, a share on another computer, or a URL, depending on where your home directory is located.
  5. In the Local Path field, enter the directory’s path, share name, or URL.

Add a Virtual Directory in IIS

To add a virtual directory in Internet Information Services (IIS), you can follow these steps:

  1. Open Internet Information Services (IIS) Manager. You can usually find it in the Administrative Tools or by searching for “IIS Manager” in the Start menu.
  2. In the left-hand pane of IIS Manager, expand the server name to reveal the list of available sites.
  3. Select the site where you want to add the virtual directory.
  4. In the Features View, double-click on the “Virtual Directory” option, or right-click on the site and choose “Add Virtual Directory” from the context menu.
  5. In the Add Virtual Directory window, provide the following information: -> alias -> Physical.
  6. Click on the “Connect as…” button if you want to specify credentials for accessing the virtual directory. You can choose to use the application pool identity or specify a different user account.
  7. Configure any additional settings, such as permissions or authentication, as needed.
  8. Click OK to create the virtual directory

Set a Default Document for IIS

A default document is a file served by a web server when the user does not specify a file name in the web address. By default, most web servers use the file names index.html, index.htm, default.html, default.htm, default.aspx, etc. as the default document if no default document is specified for the website.

Change IIS Log Properties

To change log file properties for Internet Information Services (IIS) using .NET, you can utilize the Microsoft.Web.Administration namespace, which provides a managed API for administering IIS.

Web Controls

Controls are small building blocks of graphical user interfaces that include text fields, buttons, check boxes, lists, labels, and many other tools. These tools allow users to enter data, make selections, and display preferences.

Controls are also used for structural tasks such as validation, data access, security, master page creation, and data manipulation.

HTML Controls

HtmlControls are just programmable HTML markers. By dereliction these markers are nonfictional textbook and you can not source them with garçon side law. To” see” any HTML label with yourASP.NET garçon side law you need to add runat = ” garçon” and some value to ID parameter.

Intrinsic Controls

Intrinsic controls, also known as built-in controls, are pre-defined user interface elements provided by the .NET Framework. These controls are readily available for use in developing Windows-based applications using .NET technologies such as Windows Forms or WPF (Windows Presentation Foundation).

Using Input Validation Controls

In .NET, you can use input validation controls to validate user input and ensure that it meets certain criteria before processing it further. Input validation controls help prevent potential security vulnerabilities such as cross-site scripting (XSS) attacks and SQL injection attacks by enforcing input constraints.

There are several built-in input validation controls available in .NET, including:

  1. Required Field Validator.
  2. Regular Expression Validator.
  3. Range Validator.
  4. Compare Validator.
  5. CustomValidator.

Selecting Controls for Applications

Selection controls allow the stoner to elect one or further values from a list. They include both CheckBox and RadioButton controls, which are designed to work in a group. The RadioButton control allows you to elect only one option out of the group, whereas the CheckBox control allows you to elect zero or further options.

To add web controls to a page in .NET, you can follow these steps:

  1. Open your .NET project in Visual Studio.
  2. Open the web page (usually an ASPX file) to which you want to add web controls.
  3. Locate the section of the page where you want to add the web control. This could be in the HTML markup or within an ASP.NET server control such as a .
  4. Inside the desired location, add the web control tag. The tag will vary depending on the specific control you want to add.
  5. Customize the properties of the web control by modifying the attributes within the control tag. For example, you can set the Text property of a button or the DataSource property of a drop-down list.
  6. Optionally, you can handle events raised by the web control by specifying the event handler method in the OnClick, OnTextChanged, or other appropriate attribute of the control tag.
  7. Save the changes to the ASPX file.

Server Controls

server controls are an essential part of the development process. Server controls are elements that run on the web server and generate the necessary HTML markup for the client browser. They allow you to encapsulate functionality and handle events on the server side.

Here are some commonly used server controls for creating web forms:

  1. TextBox.
  2. Button.
  3. DropDownList.
  4. CheckBox.
  5. RadioButton.
  6. CheckBoxList.
  7. RadioButtonList.
  8. FileUpload.
  9. Calendar.
  10. Validation controls.

Types of Server Controls

There are several types of server controls that you can use to create dynamic and interactive web applications. These controls are designed to generate HTML and execute on the server side before being sent to the client’s web browser. Here are some commonly used server controls in .NET:

  1. HTML Server Controls.
  2. Web Server Controls.
  3. Validation Controls.
  4. Data Controls.
  5. Login Controls.
  6. Navigation Controls.
  7. Master Pages.
  8. User Controls.
  9. Custom Controls.

Add ASP.NET Code

To add ASP.NET code to a page, you need to follow these steps:

  1. Open your ASP.NET project in your preferred Integrated Development Environment (IDE), such as Visual Studio.
  2. Locate the page where you want to add the ASP.NET code. The page should have a .aspx extension.
  3. Inside the .aspx file, locate the tag or the specific location where you want to add the code.
  4. You can add ASP.NET code within the tags. There are different types of code you can add.
  5. Save the changes to your .aspx file.
  6. Run the ASP.NET application to see the code in action.