ASP.Net Articles

Found 25 articles

How does the event pattern work in .NET?

Akshay Khot
Akshay Khot
Updated on 11-Mar-2026 625 Views

Events are a simplified pattern that uses delegates. In C#, all delegates have the multicast capability, i.e., an instance of a delegate can represent not just a single method but a list of methods. For example −Exampledelegate int Transformer(int x); static void Main(){    Transformer perform = x =>{       int result = x * x;       Console.WriteLine(result);       return result;    };    perform += x =>{       int result = x * x * x;       Console.WriteLine(result);       return result;    };    perform(2); // prints ...

Read More

Explain the stream architecture in .NET

Akshay Khot
Akshay Khot
Updated on 11-Mar-2026 646 Views

The .NET streams architecture provides a consistent programming interface for reading and writing across different I/O types. It includes classes for manipulating files and directories on disk, as well as specialized streams for compression, named pipes, and memory-mapped files.The streaming architecture in .NET relies on a backing store and adapters.Backing StoreIt represents a store of data, such as a file or a network connection. It can act as either a source from which bytes can be read sequentially or a destination to which bytes can be written sequentially.The Stream class in .NET exposes the backing store to programmers. It exposes ...

Read More

Explain how Razor Pages work in ASP.NET Core

Akshay Khot
Akshay Khot
Updated on 11-Mar-2026 2K+ Views

Razor Pages simplify the traditional MVC-based programming model by adopting a file-based routing. Razor Pages focus on page-based scenarios for building web applications rather than using controllers and views like a traditional ASP.NET MVC application.Once the application receives an HTTP request, it moves through the middleware pipeline until it reaches a middleware component that can handle and process it. Typically, it's a routing middleware that matches a URL path to a configured route. This route defines which Razor page to invoke for this particular request.Once the router has selected the Razor Page, the framework executes that Razor Page to generate ...

Read More

Characteristics of .NET Framework

Siva Sai
Siva Sai
Updated on 24-Jul-2023 4K+ Views

In the realm of software development, Microsoft's .NET Framework has revolutionized the industry with its comprehensive and consistent programming model for creating applications that have visually stunning user experiences, seamless and secure communication, and the ability to model a range of business processes. This article seeks to highlight the key characteristics of the .NET Framework that make it a vital tool for developers worldwide. What is .NET Framework? The .NET Framework, a software framework developed by Microsoft, is a platform for building various types of applications. From Windows-based applications to web-based applications and services, the .NET Framework provides a large ...

Read More

Difference between JSP and ASP

Kiran Kumar Panigrahi
Kiran Kumar Panigrahi
Updated on 27-Jul-2022 5K+ Views

JSP and ASP are both server-side scripting languages. JSP is Java based and is developed by Sun Microsystems, whereas ASP is developed by Microsoft and is also referred as Classic ASP. Whenever a browser requests a JSP or ASP page, the server engine reads the file, executes the code in file and returns the HTML output to the browser.JSP is compiled, whereas ASP is interpreted. ASP.NET is a .NET based variant of ASP where the codes are compiled to improve the performance.What is ASP?ASP is a server-side scripting engine, which means the code that is written gets sent to the ...

Read More

Explain the ASP.NET Core support for multiple environments for development and production

Akshay Khot
Akshay Khot
Updated on 22-Jun-2021 1K+ Views

Running an application in production for live customers is very different from running it when you are developing it on your local machine. In production, your application is hosted on a server which has very different configurations and specifications than your computer. Various services that your application talks to, such as databases or external APIs change for production.By letting the application know which environment it’s running, you can vary the application’s behavior. ASP.NET Core makes it easy to manage various environments effortlessly. You can configure different configuration settings for different environments, and tweak them without having to recompile the application. ...

Read More

How to schedule background tasks (jobs) in ASP.NET Core?

Akshay Khot
Akshay Khot
Updated on 22-Jun-2021 2K+ Views

Background tasks, also called as jobs, are essentially services that aren’t meant to execute during a normal flow of the application, such as sending email confirmations or periodically cleaning up the database to purge the inactive accounts. These jobs are not meant to interact with the customers or process user input. Rather, they run in the background, handling items from a queue or executing a long-running process.A primary advantage of performing these tasks in a background job or service, you can keep the application responsive. For example, when a user signs up, instead of sending them an email in the ...

Read More

What is SignalR and how to use it?

Akshay Khot
Akshay Khot
Updated on 22-Jun-2021 4K+ Views

In typical web applications, the communication flow is one-way, i.e. from client to the server. The client initiates a request to the server, the server performs some task, and sends the response to the client.SignalR is an open-source project that enables real-time, bi-directional web communication from server to clients. Using SignalR, you can write server-side code that can communicate with the clients instantly.SignalR simplifies the process of adding real-time web functionality to web applications, where the server code pushes content to connected clients as soon as it becomes available. This frees the clients from repeatedly polling the server, and having ...

Read More

What is Kestrel and how does it differ from IIS? (ASP.NET)

Akshay Khot
Akshay Khot
Updated on 22-Jun-2021 10K+ Views

Kestrel is a lightweight, cross-platform, and open-source web server for ASP.NET Core. It is included and enabled by default in ASP.NET Core. Kestrel is supported on all platforms and versions supported by .NET Core.In the Program class, the ConfigureWebHostDefaults() method configures Kestrel as the web server for the ASP.NET Core application.public class Program{    public static void Main(string[] args){       CreateHostBuilder(args).Build().Run();    }    public static IHostBuilder CreateHostBuilder(string[] args) =>       Host.CreateDefaultBuilder(args)          .ConfigureWebHostDefaults(webBuilder =>{             webBuilder.UseStartup();          }); }Though Kestrel can serve an ...

Read More

Explain the purpose of the Startup class in ASP.NET Core

Akshay Khot
Akshay Khot
Updated on 22-Jun-2021 4K+ Views

The Startup class configures your application's services and defines the middleware pipeline.Generally speaking, the Program class is where you configure your application's infrastructure, such as the HTTP server, integration with IIS, and configuration sources. In contrast, the Startup class defines which components and features your application uses and the middleware pipeline for your app.Startup.csHere is a sample Startup.cs file in a standard ASP.NET Core application.using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.HttpsPolicy; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; namespace TutorialsPoint{    public class Startup{       public Startup(IConfiguration configuration){       ...

Read More
Showing 1–10 of 25 articles
« Prev 1 2 3 Next »
Advertisements