Month: April 2022

ASPNET
ASP.NET – Managing State

ASP.NET – Managing State Hyper Text Transfer Protocol (HTTP) is a stateless protocol. When the client disconnects from the server, the ASP.NET engine discards the page objects. This way, each web application can scale up to serve numerous requests simultaneously without running out of server memory. However, there needs to be some technique to store […]

Read More
ASPNET
ASP.NET – Server Side-Server Control

ASP.NET – Server Side We have studied the page life cycle and how a page contains various controls. The page itself is instantiated as a control object. All web forms are basically instances of the ASP.NET Page class. The page class has the following extremely useful properties that correspond to intrinsic objects: Session Application Cache […]

Read More
CSharp
Csharp_Arrays

C# – Arrays An array stores a fixed-size sequential collection of elements of the same type. An array is used to store a collection of data, but it is often more useful to think of an array as a collection of variables of the same type stored at contiguous memory locations. Instead of declaring individual […]

Read More
CSharp
C# – Type Conversion

C# – Type Conversion Type conversion is converting one type of data to another type. It is also known as Type Casting. In C#, type casting has two forms − Implicit type conversion − These conversions are performed by C# in a type-safe manner. For example, are conversions from smaller to larger integral types and […]

Read More
CSharp
csharp Program Structure

Creating Hello World Program A C# program consists of the following parts − Namespace declaration A class Class methods Class attributes A Main method Statements and Expressions Comments Let us look at a simple code that prints the words “Hello World” − using System;namespace HelloWorldApplication {class HelloWorld {static void Main(string[] args) {/* my first program […]

Read More