Complete about Microsoft .NET Framework 2.0 ?

Table of Contents

 

 

 

ú       Introduction

 

ú       Overview

 

ú       .Net Framework Remoting

 

ú       Globalization

 

ú       Manifest-Based Activation

 

ú       New Window-based Form controls

 

ú       Conclusion

 

 

 

 

 

 

 

 

 

 

 

Introduction:

 

         The new version of .NET Framework which is .NET Framework 2.0

          introduced with lot of new features which is now more affective, useful

           then the old version of .NET which is .NET Framework 1.1.

          

          Here we define the new features which are introduced in .NET 2.0…

           We hope it will useful and complete…

         

 

         .Net Framework is an integrated and managed environment for the                                                                                                   

           development and execution of your code.

 

 

      

       .Net allocates memory for the storage of data and instructions, grants or                                                                                                 

        denies the appropriate permissions to your application, initiates and

        manages application execution and manages the re-allocation of memory                                                                                                  

         from resource that are no longer needed.

 

 

 

 

Overview:

 

Ø          .NET Framework

 

§        .Net provides development tools, run-time environment, server infrastructure and intelligent software which enable you to build application for various platform and devices.

        

§        “The .NET Framework is an integral Windows component that supports developing, deploying and running the applications and XML Web services.”

 

 

Changes in 2.0 in comparison with 1.1:

 

Here are the changes which are performed in the new version of .NET Framework 2.0:

                                   

l     Numerous API changes.

 

l     A new hosting API for native applications wishing to host an instance of the .NET runtime. The new API gives a fine grain control on the behavior of the runtime with regards to multithreading, memory allocation, assembly loading It was initially developed to efficiently host the runtime in Microsoft SQL Server, which implements its own scheduler and memory manager.

 

 

l     Full 64-bit support for both the x64 and the IA64 hardware platforms.

 

l     Language support for generics built directly into the .NET CLR.

 

l     Many additional and improved ASP.NET web controls.

 

l     New data controls with declarative data binding.

 

l     New personalization features for ASP.NET, such as support for themes, skins and webparts.

 

l     .NET Micro Framework - a version of the .NET Framework related to the Smart Personal Objects Technology initiative.

l     Partial classes

 

l     Anonymous methods

 

l     Generics

 

l     Data Tables

 

 

 

Net Framework Remoting:

 

Ø     .Net Framework Remoting:

 

§        .NET Remoting is a Microsoft application programming interface (API) for interprocess communication released in 2002 with the 1.0 version of .NET Framework. It is one in a series of Microsoft technologies that began in 1990 with the first version of Object Linking and Embedding (OLE) for 16-bit Windows.

 

§        .Net remoting is used to enable communication between different applications .

 

§        Computers may be part of network, .NET Remoting is an enabler for application communication.

 

 

.Net Remoting Architecture:

 

 

Features of .NET Framework Remoting:

 

 

Ø     Multiple transfer mechanisms – HTTP/TCP

                If there is no web server running – put traffic on port 80

 

Ø     Multiple encodings – SOAP/ Binary

                 (Your own-serialization)

 

Ø     .NET Remoting is more flexible (more activation and deployment options)

 

Ø     .NET Remoting is customizable (you can add logging or other features)

 

Ø     .Net Remoting enables you to work with stateful objects

 

Ø     Interface description does not have to be manually coded in any way, as metadata can be extracted from running servers, or from any .Net assembly

 

Ø     One of the major benefits is that it’s centralized around well-known and well-defined standards like HTTP and is directly tied to the .Net Framework

 

 

 

 

Globalization:

 

Ø          What is Globalization?

 

§        Globalization (globalization) in its literal sense is the process of transformation of local or regional phenomena into global ones. It can be described as a process by which the people of the world are unified into a single society and function together.

 

§        It is an process in which it run across all platforms and all sites with minimum or no modification to the application.

 

§        It also makes locally prevailing information on culture. Like location information and language used in particular location.

 

 

Features of Globalization:

 

Ø    Feature introduced in .Net 2.0:

 

§        CultureAndRegionInfoBuilder class

§           Support for custom cultures enables you to define and deploy culture-related information as needed. This feature is useful for creating minor customizations of existing culture definitions, and creating culture definitions that do not yet exist in the .NET Framework. For more information, see the CultureAndRegionInfoBuilder class.

 

       

§        System.Text namespace

§         Encoding and decoding operations map a Unicode character to or from a stream of bytes that can be transferred to a physical medium such as a disk or a communication line. If a mapping operation cannot be completed, you can compensate by using the new encoding and decoding fallback feature supported by several classes in the System.Text namespace.

 

§        UTF8Encoding class

§         Members in the UTF8Encoding class, which implements UTF-8 encoding, are now several times faster than in previous releases. UTF-8 is the most common encoding used to transform Unicode characters into bytes on computers.

 

 

§        Support Latest Normalization Standard

§         The .NET Framework now supports the latest normalization standard defined by the Unicode Consortium. The normalization process converts character representations of text to a standard form so the representations can be compared for equivalence.

 

§        CultureInfo class

§         The GetCultureInfo method overload provides a cached version of a read-only CultureInfo object. Use the cached version when creating a new CultureInfo object to improve system performance and reduce memory usage.

Manifest – Based Activation:

 

l    Overview

                

                Manifest is an XML based, database driven Content   

                Management System (CMS) for satisfying corporate  

                communications needs, including Internet and Intranet.

                Traditional web development packages focus on creating 

                a Website one page at a time, often immersing the author

                 in complex HTML code

 

 

 

Manifest – Based Activation:

 

 

l    ClickOnce

 

           Manifest-based activation is essential for supporting ClickOnce                

           applications. Traditionally, applications are activated through

           a reference to an assembly that contains the

           application's entry point.

   

l      Web Application

    

The manifest-based activation model uses an application manifest for activation rather than an assembly. A manifest fully describes the application, its dependencies, security requirements, and so forth. The manifest model has several advantages over the assembly-based activation model, especially for Web applications.

 

 

Manifest – Based Activation:

 

 

l    APIs

  

Manifest-based activation is provided by a set of APIs that allow managed hosts to activate applications and add-ins described by a manifest. These APIs contain a mixture of both new classes and extensions to existing classes.

 

 

l     This activation model also invokes an entity called a Trust Manager that performs the following tasks:

 

l     Determines whether an application is allowed to be activated. This decision can be made by prompting the user, querying policy, or by any other means deemed appropriate for a given Trust Manager.

 

l     Sets up the security context to run an application in. Most commonly, this step involves setting up a code access security (CAS) policy tree on the application domain in which the application will run. 

 

 

 

New Window-Based Form Control:

 

 

         .Net Framework 1.0 was released on January 16,2002

          which was its first version. After that version 1.1 was

  released on April 24,2003 which was released together

  With Windows 2003 Server.

  Latest version is .net framework 2.0 which was

  released on November 7, 2005 with Visual Studio 2005

  and SQL Server 2005.

 

 

 

New Window-Based Form Control


Overview:

 

Ø     Debugger Edit and Continue Support

Ø      I/O Enhancements

Ø      .NET Framework Remoting

Ø      Click Once Deployment

Ø      Masked Text Box

Ø      Sound Player Class

 

 

 

New Controls:

 

Ø       Debugger Edit and Continue Support

 

l     The .NET Framework 2.0 reintroduces the Edit and Continue feature

           that enables a user who is

           debugging an application in Visual Studio to

           make changes to source code while executing in

           Break mode.

 

Ø     I/O Enhancements

 

l     You can now use the classes in the

          System.IO.Compression namespace to read

          and write data with the GZIP compression

          and decompression standard, described in

          the IETF RFC 1951 and RFC 1952

          specifications.

 

 

Ø    .NET Framework Remoting

 

§         .NET Framework Remoting now supports IPv6    

                      addresses and exchange of generics types.

 

Ø      Click Once Deployment

  

     You can deploy Windows client and commandline

                     applications. There are new Publish Project

                     commands on the Build and Project menus in

                     Visual Studio.      

 

 

Ø   Masked Text Box

 

            Uses a masked definition to distinguish between a valid

             and invalid user input.   

           

       

Ø   Sound Player Class

 

             The SoundPlayer class enables you to play sounds file in      

             .wav format and enables you to load or play sounds 

              asynchronously.

 

 

Ø     Table Layout Panel

 

   The TableTayOut panel controls arranges its contents in a grid.    

    Because the layout is performed both at design time and run time, it  

    can change dynamically as the application environment changes.   

 

 

 

Some Other Controls in .NET 2.0:

 

l     ContextMenuStrip control

             The ContextMenuStrip is an enhanced shortcut menu used with ToolStrip controls

 

l     DataGridView control

                   The DataGridView control provides a powerful and flexible way to display data in a

                   tabular format. It can be used to show read-only views of a small amount of data, or  

                   it can be scaled to show editable views of very large sets of data. The data can reside   

                   in an external data source or be added directly to the control. For more information,

                   see DataGridView Control Overview (Windows Forms).

        

l     Layout panels

             The FlowLayoutPanel control arranges its contents in a horizontal or vertical flow  

direction. The TableLayoutPanel control arranges its contents in a grid. Because the layout is performed both at design time and run time, it can change dynamically as the application environment changes. For more information, see FlowLayoutPanel Control Overview and TableLayoutPanel Control Overview

 

l     ListView control

              The ListView control now supports three features provided by Windows XP and the

              Windows Server 2003 family

 

l     MenuStrip control

              The MenuStrip is an enhanced menu system that is used with ToolStrip controls.

 

l     SplitContainer control

The Windows Forms SplitContainer control can be thought of as a composite; it is two panels separated by a movable bar. When the mouse pointer is over the bar, the cursor changes to show that the bar is movable. Use it to create complex, resizable user interfaces that are most effective for displaying and browsing information. For more information, see SplitContainer Control (Windows Forms).

 

l     StatusStrip control

                    The StatusStrip is an enhanced status bar used with ToolStrip controls.

 

l     ToolStrip control

ToolStrip controls are toolbars that can host menus, controls, and user controls in your Windows Forms applications. The ToolStrip and its associated classes let you create toolbars and other user interface elements that can have a Windows XP, Office, Internet Explorer, or custom look of the interface. For more information, see ToolStrip Control Overview (Windows Forms).

 

l     ToolStripContainer control

The ToolStripContainer provides built-in rafting and docking of ToolStrip, MenuStrip, and StatusStrip controls.

 

l     WebBrowser control

The WebBrowser control lets you host Web pages in your Windows Forms applications

 

 

 

Resources

 

Ø     Slides material are taken from different source including:

 

§        Matthew A. Stoecker-Microsoft 2nd Edition.

 

§        Microsoft books

 

§        Internet

         http://www.msdn.com                  -Developer NETWORK      

         http://www.google.com                 -About .NET

         http://www.gotdotnet.com            -Developers .NET resource

         http://msdn.microsoft.com/net    -Microsoft .NET developers

 

 

Conclusion:

 

 

From the discussion in this article, several evolving trends related to the new version of .Net 2.0 are observed. First, .NET 2.0 will be based on the simple controls and supports only some specify languages


-- Nikhil Kumar
Visit --- www.dotnetask.blog.co.in
Ebook Download
View all
Learn
View all