Understanding Code Behind in .Net Framework

Written by Balaji


Understanding Code Behind in .Net Framework

The ASP.NET Code Behind feature in .Net Framework allows developers to separaterepparttar server-side code fromrepparttar 133445 presentation layer. This concept makesrepparttar 133446 server-side code to store in one file andrepparttar 133447 presentation code, that is, HTML code in another file. When you compilerepparttar 133448 ASP.NET page both these files get compiled as a single entity. Inrepparttar 133449 traditional ASP model, this could not be achieved which often leads to intermingling ofrepparttar 133450 code andrepparttar 133451 design.

The biggest advantage, in ASP.NET, is thatrepparttar 133452 presentation code will be in .aspx file andrepparttar 133453 server-side code will be in any .Net compatible language such as Visual Basic.Net, C#, or J#. You can also do away withrepparttar 133454 presentation layer because you can give this role torepparttar 133455 web designers. This saves time and you can concentrate only onrepparttar 133456 coding part ofrepparttar 133457 application. In addition, you can create a class for your code and inherit this class fromrepparttar 133458 ASP.NET Page object. By this wayrepparttar 133459 class can accessrepparttar 133460 page intrinsics and also interact withrepparttar 133461 postback architecture. After this you can createrepparttar 133462 ASP.NET page and apply a page directive to inherit from this new class.

Understanding Common Type System in .Net Framework

Written by Balaji


Understanding Common Type System in .Net Framework

As .Net Framework is language independent and support over 20 different programming languages, many programmers will write data types in their own programming language.

For example, an integer variable in C# is written as int, whereas in Visual Basic it is written as integer. Therefore in .Net Framework you have single class called System.Int32 to interpret these variables. Similarly, forrepparttar ArrayList data type .Net Framework has a common type called System.Collections.ArrayList. In .Net Framework, System.Object isrepparttar 133444 common base type from where allrepparttar 133445 other types are derived.

This system is called Common Type System. The types in .NET Framework arerepparttar 133446 base on which .NET applications, components, and controls are built. Common Type System in .Net Framework defines how data types are going to be declared and managed in runtime. The Common Type System performsrepparttar 133447 following functions:

Automatically adapts itself in a framework that enables integration of multiple languages, type safety, and high performance code execution. Provides an object-oriented model. Standardizesrepparttar 133448 conventions that allrepparttar 133449 languages must follow. Invokes security checks. Encapsulates data structures.

Cont'd on page 2 ==>
 
ImproveHomeLife.com © 2005
Terms of Use