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 asp.net page life cycle. The steps are

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

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.

.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.

 ASP.NET provides validation server controls. All validation controls inherits from BaseValidator class which contains the common validation properties and methods like ControlToValidate, Enabled, IsValid, EnableClientScript, ValidationGroup,Validate() etc.
ASP.Net provides a range of validation controls:

The first line of an ASP.NET page is the page directive; you will find it on all ASP.NET pages. These directives are instructions for the page. It begins with the @Page directive and continues with the various attributes available to this directive.
Its unreasonable to expect a candidate to know all of these attributes, but a few popular ones include the following.
AutoEventWireup: Indicates whether page events are autowired.
CodeBehind: The name of the compiled class associated with the page.
Debug: Indicates whether the page is compiled in debug mode (includes debug symbols).
EnableTheming: Indicates whether themes are used on the page.
EnableViewState: Indicates whether view state is maintained across pages.
ErrorPage: Specifies a target URL to be used when unhandled exceptions occur.
Language: Indicates the language used when compiling inline code on the page.
Trace: Signals whether tracing is enabled on the page.

Assemblies
Every software has executable files (.exe). apart from the executable file, there are some Dynamic Link Libraries (DLL) & Library (LIB) files, which conyain the complicated code of some commonly used functions. These files come along with software. Any software package includes the executable file along with some DLLs & LIB files, which are necessary to run the application. In terms of .NET runtime, the process of packaging is called assembling. An assembly contains MSIL, metadata, & other files required to execute .NET program successfully.
In .NET Framework, assemblies play an important role. An assembly is an fundamental unit of deployment. Deployment is the process wherein an application installed on a machine. Assemblies can be created with the help of some development tools like Visual Studio or with the help of tools provided in .NET framework SDK. Assemblies can be make in form of .dll or .exe files using Visual Studio. When source code is compiled, the EXE/DLL, generated by default, is actually an assembly.

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

Log in

*
*

Forgot password?

*

New User

*
*
*
*