ASP.NET Page life cycle having different events, which are having a sequence of flow i.e. each event will fire one after one in an ordered manor. These events would be coded. The following are the various events of ASP.Net page life cycle-

  • PreInit 
  • Init 
  • Init Complete
  • PreLoad 
  • Load
  • Control Event (PostBack Event )
  • Load Complete
  • PreRender 
  • Save State Complete
  • Render 
  • Unload

ASP.Net webpage execution will perform several steps for processing page; this is called page life cycle. The steps are

  • Page Request
  • Start
  • Page initialization
  • Page Load
  • Post Back events handling
  • Rendering
  • Unload

There are two types of session events available in

  • Session_Start
  • Session_End

You can auto generate number with character by this code-

.Net is not a language, it is a framework that provides a library for writing and executing programs at runtime in many programming languages, including Visual C#, Visual Basic, Visual F# and C++/CLI. The .NET Framework consists of a virtual execution system called CLR and a set of Class Libraries.We can create or develop Web, Window and Console applications within the Microsoft Environment.

 From the .NET Framework 2.0 Service Pack 1 through the .NET Framework 4, each version of the.NET Framework has included tables that contain sort weights and data on string normalization and that are based on a particular version of Unicode. In the .NET Framework 4.5, the presence of these tables depends on the operating system:

  • On Windows 7 and previous versions of the Windows operating system, the tables continue to be used for comparing and ordering strings.
  • On Windows 8, the .NET Framework delegates string comparison and ordering operations to the operating system.
  • Consequently, the result of a string comparison can depend not only on the .NET Framework version, but also on the operating system version, as the following table shows:
  1. .NET Framework version Operating system Unicode version
  2. .NET Framework 4 All operating systems Unicode 5.0
  3. NET Framework 4.5 Windows 7 Unicode 5.0
  4. NET Framework 4.5 Windows 8 Unicode 6.0
  • On Windows 8, because the version of Unicode used in string comparison and ordering depends on the version of the operating system, the results of string comparison may differ even for applications that run on a specific version of the .NET Framework.
The SortVersion class provides information about the Unicode version used by the .NET Framework for string comparison and ordering. It enables to write applications that can detect and successfully handle changes in the version of Unicode that is used to compare and sort an application’s strings. The following example contains a portion of the source code from an application that uses the SortVersion class to ensure that the native names of RegionInfo objects are ordered appropriately for the current system and current culture.

A singleton is a design pattern used when only one instance of an object is created and shared; that is, it only allows one instance of itself to be created. Any attempt to create another instance simply returns a reference to the first one. Singleton classes are created by defining all class constructors as private. In addition, a private static member is created as the same type of the class, along with a public static member that returns an instance of the class. Here is a basic example:

We can write the client side validation control in jquery-
Indexer: Indexer can be termed as location indicators and they are used to access class objects in the same way as array elements are accessed.

Cookie is the small text file which is stored on client machine. It uses to store the small amount of information on client.
Cookie consists of the following two parts:
Key – Name of Cookie.
Value – Information stored in the cookie.
We also can specify the life of a cookie, if you do not specify the life of a cookie, then it will last on the client machine till you do not clean it.We can specify the particular date and time when the cookie is automatically removed from the client machine.Cookie are used to transfer the information from one page to another page. You can also disable the cookie on the browser so that the information did not store on your machine.

Displaying 1 of 3Next
1 2 3
Need Help? Contact Us.

Log in


Forgot password?


New User