SlideShare una empresa de Scribd logo
1 de 52
DOTNET FRAMEWORK




                   KGiSL iTech
Introduction to .NET


        .NET technology was introduced by Microsoft.

        .NET is not an operating system

        .NET is not a programming language.

        .NET is a framework.




KGiSL iTech                                             Page 2
Introduction to .NET(Contd…)


          Dot Net Framework is a Programming model of the .NET
          environment for building, deploying, and running Web-based
          applications, smart client applications, and XML Web services . 

       A set of technologies for developing and using components to
        create:
            Web Forms
            Web Services
            Windows Applications


       The .NET Framework includes the common language runtime and
        class libraries.

       .NET provides a common set of class libraries, which can be
        accessed from any .NET based programming language.


KGiSL iTech                                                           Page 3
Introduction to .NET(Contd…)

       It is a new, easy, and extensive programming platform.

       It is not a programming language, but it supports several
        programming languages.

       By default .NET comes with few programming languages including
        C# (CSharp), VB.NET, J# and managed C++.




KGiSL iTech                                                         Page 4
Introduction to .NET(Contd…)

 Following are the core features of Dot Net Framework


       Simplified Programming Model
       Simplified Deployment
       Programming Language Integration
       Garbage Collection
       Consistent Error Handling




KGiSL iTech                                             Page 5
 Platform Independency
  Language Independency
  Language Interoperability
 Security
  For Windows Applications
   - net framework supports “Code access security and
     “role Based security”
  For web and mobile applications
   - Security can be achieved using Configuration files
     like machine.config and web.config.



KGiSL iTech                                          Page 6
Application Architecture



    1.   Single Tier Architecture
    2.   Two Tier Architecture
    3.   Three Tier Architecture

    Single Tier Architecture:
       The one-tier, or single-tier, architecture is a system in
       which the database, application, and presentation services
       (the user interface) all reside on one system. .




KGiSL iTech                                                  Page 7
Application Architecture (Contd…)

  Two Tier Architecture:
  - A two tier system consists of a client and a server.

  - A two-tier application is one in which the presentation
    services and the database reside on different systems.

  - The presentation services (user interface) layer usually
    includes application logic.




KGiSL iTech                                                Page 8
Two Tier Architecture




KGiSL iTech              Page 9
Application Architecture (Contd…)

  Three Tier Architecture:

   The third tier(Middle tier) is between the user
    interface(client) and the data management(server).

   This middle tier provides process management where business
    logic and rules are executed.




KGiSL iTech                                                 Page 10
Three Tier Architecture




KGiSL iTech                Page 11
Three Tier Architecture

  Tier 1: the client contains the presentation logic, including
   simple control and user input validation. This application is also
   known as a thin client.

  Tier 2: the middle tier is also known as the application server,
   which provides the business processes logic and the data access.

  Tier 3: the data server provides the business data.


 These are some of the advantages of a three-tier architecture:
  It is easier to modify or replace any tier without affecting the
   other tiers.
  Separating the application and database functionality means
   better load balancing.


KGiSL iTech                                                      Page 12
Application Architecture (Contd…)

 Basically,in three tier architecture 3 layers are used to create a projects.

          1.   UI Layer
               - UI which includes pages,user controls,CSS,Java Scripts.

          1.   Business Layer
               - All business rules performed here.

          1.   Data Access Layer

               -   All data access code like connecting to database and getting
                   the details are done here.




KGiSL iTech                                                                     Page 13
Three Layers




KGiSL iTech     Page 14
Versions of .NET


        .NET Framework        Visual Studio


       .NET Framework 1.0   Visual Studio 2002

       .NET Framework 1.1   Visual Studio 2003

       .NET Framework 2.0   Visual Studio 2005

       .NET Framework 3.5   Visual Studio 2008

       .NET Framework 4.0   Visual Studio 2010




KGiSL iTech                                      Page 15
VS.NET(Visual Studio.NET)

  VS.NET is just an editor, provided by Microsoft to
   help developers write .NET programs easily .

  VS.NET editor automatically generates lot of code,
   allows developers to drag and drop controls to a
   form, provide short cuts to compile and build the
   application etc.

  VS.NET has several child windows to assist you in the
   application development.

  These windows are attached on the left, bottom and
   right sides of the main window.


KGiSL iTech                                             Page 16
VS.NET(Visual Studio.NET) (Contd…)

  Some of the most commonly used child windows are explained
   below. Most of these windows will be enabled only when you have
   created a project and working on a WebForm/WinForm.

 Tool Box
     • Toolbox provides all the drag and drop controls for your
       application.

     • Depending on the kind of application you are working on,
      the toolbox will show appropriate controls.




KGiSL iTech                                                   Page 17
Tool Box




KGiSL iTech   Page 18
VS.NET(Visual Studio.NET) (Contd…)

 Source(HTML) & Design Mode
     • If you are developing a web application, you can switch
       between design mode and HTML mode for any web form.

     • When you are in HTML mode, it will show you the HTML tags
       and ASP.NET code and you can manually edit it.

     • You can switch to the Design mode by clicking the Design
       button on BOTTOM LEFT corner of VS.NET.

     • In design mode, you can see how your ASP.NET page is
      going to look like when some one view your web page. Also,
      you can drag and drop controls from the toolbox, which will
      automatically generate the HTML for it.




KGiSL iTech                                                  Page 19
Source(HTML) & Design Mode




KGiSL iTech                   Page 20
VS.NET(Visual Studio.NET) (Contd…)

  Solution Explorer Window
     • Solution Explorer, located on TOP RIGHT corner of VS.NET,
       displays your solution, all projects included in each solution
       and the list of files in each project. They are listed in the form
       of a tree control.


  Output Window
     • Output window, located on BOTTOM LEFT corner of VS.NET,
       displays the result of your project compilation. When you
       compile your project, all errors, warnings and compilation
       results will be displayed in this window.




KGiSL iTech                                                        Page 21
Solution Explorer Window




KGiSL iTech                 Page 22
VS.NET(Visual Studio.NET) (Contd…)

  Task List Window
     • It shows individual tasks. Typically, when you compile your project,
       all errors and warnings will be added to your task list. You can
       double click on any item in the task list to go directly to the code
       associated with the task.

  Properties Window
     • It displays the different types of property for each and every control.
       The common property for all controls are Font, Color, Forecolor
    and so on.

  Code behind window
  - Code-behind model, which places this code in a separate file or in a
    specially designated script tag.
  - Code-behind files typically have names like Firstpage.aspx.cs or
    Firstpage.aspx.vb


KGiSL iTech                                                             Page 23
Properties Window




KGiSL iTech          Page 24
Code Behind Window




KGiSL iTech           Page 25
Shortcut Keys

  Compilation and Execution – F5

  Toolbox Window– Ctrl + Alt + X

  Property Window – F4

  Solution Explorer – Ctrl + Alt + L

  Design View to Code View – F7(Code Behind Window)

  Code View to Design View – Shift + F7(Source Window)



KGiSL iTech                                               Page 26
KGiSL iTech   Page 27
.NET Framework
  Common Language Runtime




      -   CLR manages code execution at runtime
      -   Memory management, thread management, etc.




                Common Language Runtime

                      Operating System

KGiSL iTech                                            Page 28
.NET Framework
  Base Class Library




       -   Object-oriented collection of reusable types
       -   Collections, I/O, Strings, …




             .NET Framework (Base Class Library)

                  Common Language Runtime

                        Operating System

KGiSL iTech                                               Page 29
.NET Framework
  Data Access Layer



      -    Access relational databases
      -    Disconnected data model
      -    Work with XML




                      ADO .NET and XML

            .NET Framework (Base Class Library)

                  Common Language Runtime

                       Operating System

KGiSL iTech                                       Page 30
.NET Framework
  ASP.NET & Windows Forms


      -    Create application’s front-end – Web-based user interface,
           Windows GUI, Web services, …




                  ASP .NET                     Windows
          Web Forms Web Services
                                                Forms
           Mobile Internet Toolkit

                       ADO .NET and XML

            .NET Framework (Base Class Library)

                 Common Language Runtime

                       Operating System

KGiSL iTech                                                             Page 31
.NET Framework
  Programming Languages


      -    Use your favorite language




      C++      C#    VB.NET Perl        J#       …
                 ASP .NET                    Windows
          Web Forms Web Services
                                              Forms
           Mobile Internet Toolkit

                      ADO .NET and XML

            .NET Framework (Base Class Library)

                 Common Language Runtime

                       Operating System

KGiSL iTech                                            Page 32
.NET Framework
  Common Language Specification




       C++    Common Language Specification…
               C#  VB    Perl  J#
                  ASP .NET                Windows
         Web Forms Web Services
                                           Forms
          Mobile Internet Toolkit

                      ADO .NET and XML

             .NET Framework (Base Class Library)

                 Common Language Runtime

                       Operating System

KGiSL iTech                                         Page 33
.NET Framework
  Visual Studio .NET




       C++       C#     VB    Perl   J#       …

                Common Language Specification




                                                    Visual Studio .NET
                                                    Visual Studio .NET
                   ASP .NET               Windows
          Web Forms Web Services
                                           Forms
           Mobile Internet Toolkit

                       ADO .NET and XML

             .NET Framework (Base Class Library)

                   Common Language Runtime

                       Operating System

KGiSL iTech                                                              Page 34
KGiSL iTech   Page 35
.NET Architecture

  NET Compliant Language
     - Language which supports .NET Programming like Vb.NET,C#,C++
       and J# etc
     .
  .NET Application
     - Application which is developed by using .NET Framework.
     - Like Windows Application, Web Application, Web Service and
       Mobile Application.

  .NET Framework Class Library
     - It consist of thousands of Pre-developed classes that can be used to
       build application.




KGiSL iTech                                                          Page 36
.NET Architecture

  Common Type System(CTS)
     - A superset of the data types used by most modern programming languages.
     - CTS, common type system is the one which brings all .NET languages data types
       on a common platform.

  Common Language Specification(CLS)
     - A subset of CTS that allows code written in different languages to interoperate


     What languages?
     - Microsoft: C++, Visual Basic, C#, JScript
     - Third-Party: Cobol, Eiffel, Smalltalk, Scheme, Oberon, Haskell, Java,
       Python, Perl, …




KGiSL iTech                                                                       Page 37
CLR

  Common Language Runtime(CLR)
     - Its a virtual machine of Microsoft's .NET,
     - During Compile time the Source code(C#, VB.Net..) is
       converted into Intermediate Language (MSIL),During
       Runtime this IL is converted to native code to Operating
       System by Just In Time (JIT) of CLR




KGiSL iTech                                               Page 38
KGiSL iTech   Page 39
The CLR Compilation




                                 Assembly
   Source code

                      Compiler
   C++, C#, J#,                  DLL or EXE
   Visual Basic or
   any .NET
   language




KGiSL iTech                               Page 40
KGiSL iTech   Page 41
KGiSL iTech   Page 42
Common Language Runtime Services

  Code management
  Conversion of MSIL to native code
  Loading and execution of managed code
  Creation and management of metadata
  Verification of type safety
  Insertion and execution of security checks
  Memory management and isolation
  Handling exceptions across languages
  Interoperation between .NET Framework objects and COM objects and
   Win32 DLLs
  Automation of object layout for late binding
  Developer services (profiling, debugging, etc.)




KGiSL iTech                                                     Page 43
Applications developed by .NET


    - Windows Application
    - Web Application
    - Web Services
    - Console Applications
    - Mobile Applications




KGiSL iTech                       Page 44
CLR - The execution model
   Source     VB                C#         C++
   code
                                                      Unmanaged
              Compiler          Compiler   Compiler
                                                      component

   Managed Assembly            Assembly    Assembly
   code    IL code             IL code     IL code



      Common language runtime

                   JIT compiler
                      JIT compiler


                         Native code


     Operating system services
                                                           Page 45




KGiSL iTech
 NET supports two kinds of coding

  Managed Code
  Unmanaged Code

  Managed Code
  - The code, which is developed in .NET framework, is known as
    managed code. This code is directly executed by CLR with help of
    managed code execution.

  Unmanaged Code
  - The code, which is developed outside .NET Framework is known as
    unmanaged code.




KGiSL iTech                                                   Page 46
Assembly

  The .NET framework introduces assemblies as the main building
   blocks of your application.

  An Assembly is a  logical unit of code

  An application can contains one or more assemblies.

  An assembly can be formed in one or more files.

  Assembly physically exist as DLLs or EXEs

  When you compile your source code by default the exe/dll
   generated is actually an assembly



KGiSL iTech                                                   Page 47
Assembly Contd….

  An assembly can consist of the following four elements:

 1.Source code, compiled into MS intermediate language (MSIL). This code
   file can be either an EXE file or a DLL file.

 2.The assembly manifest,
    -   which is a collection of metadata that describes assembly name,
    -   culture settings,
    -   list of all files in the assembly,
    -   security identity, version requirements,
    -   and references to resources.
    -   The assembly manifest can be stored with the intermediate code, or in a
        standalone file that contains only assembly manifest information.


 1.Type metadata

 2.Resources


KGiSL iTech                                                                       Page 48
Assembly Contd….

        Assembly Version
     -       An assembly can have two types of versions.

     1. "Version Number"

         -    consists of a four-part string with the following format:

         -    <Major Version>.<Minor Version>.<Build Number>.<Revision
              Number>

         -    For example a version number of 3.5.20.1 indicates 3 as the major
              version, 5 as the minor version, 20 as the build number, and 1
              as the revision number.




KGiSL iTech                                                               Page 49
Assembly Contd….

 2. The second type of versions is called "Informational Version".

        -The informational version consists of a string that contains
    the version number besides additional information like
    packaging, marketing literature, or product name.




KGiSL iTech                                                    Page 50
Private Assembly and Shared Assembly

 Private Assembly
  The assembly which is used only by a single application is called as
    private assembly.
  This DLL will be used by your client application only and not by any
    other application.
  In order to run the application properly your DLL must reside in the
    same folder in which the client application is installed.
  Thus the assembly is private to your application.

 Shared Assembly

    Creating a general purpose DLL which provides functionality which will
     be used by variety of applications.

    This type of DLL’s are placed in 'global assembly cache'.

    Such assemblies are called as shared assemblies



KGiSL iTech                                                          Page 51
Global Assembly Cache

  Global assembly cache is nothing but a special disk folder
   where all the shared assemblies will be kept.

  It is located under <drive>:WinNTAssembly folder.




KGiSL iTech                                                     Page 52

Más contenido relacionado

La actualidad más candente

Dot Net Fundamentals
Dot Net FundamentalsDot Net Fundamentals
Dot Net Fundamentals
LiquidHub
 
Life as an asp.net programmer
Life as an asp.net programmerLife as an asp.net programmer
Life as an asp.net programmer
Arun Prasad
 
.Net framework
.Net framework.Net framework
.Net framework
Arun Pal
 
Net Fundamentals
Net FundamentalsNet Fundamentals
Net Fundamentals
Ali Taki
 
Intro to Microsoft.NET
Intro to Microsoft.NET Intro to Microsoft.NET
Intro to Microsoft.NET
rchakra
 

La actualidad más candente (19)

Dot Net Fundamentals
Dot Net FundamentalsDot Net Fundamentals
Dot Net Fundamentals
 
Lecture 1 introduction to vb.net
Lecture 1   introduction to vb.netLecture 1   introduction to vb.net
Lecture 1 introduction to vb.net
 
Visual Studio 2010 and .NET Framework 4.0 Overview
Visual Studio 2010 and .NET Framework 4.0 OverviewVisual Studio 2010 and .NET Framework 4.0 Overview
Visual Studio 2010 and .NET Framework 4.0 Overview
 
Life as an asp.net programmer
Life as an asp.net programmerLife as an asp.net programmer
Life as an asp.net programmer
 
Vb6 vs vb.net....(visual basic) presentation
Vb6 vs vb.net....(visual basic) presentationVb6 vs vb.net....(visual basic) presentation
Vb6 vs vb.net....(visual basic) presentation
 
.Net framework
.Net framework.Net framework
.Net framework
 
BCA IPU VB.NET UNIT-I
BCA IPU VB.NET UNIT-IBCA IPU VB.NET UNIT-I
BCA IPU VB.NET UNIT-I
 
Introduction to Visual Studio.NET
Introduction to Visual Studio.NETIntroduction to Visual Studio.NET
Introduction to Visual Studio.NET
 
Net Fundamentals
Net FundamentalsNet Fundamentals
Net Fundamentals
 
Introduction to Metro Applications
Introduction to Metro ApplicationsIntroduction to Metro Applications
Introduction to Metro Applications
 
Windows programming ppt
Windows programming pptWindows programming ppt
Windows programming ppt
 
Intro to Microsoft.NET
Intro to Microsoft.NET Intro to Microsoft.NET
Intro to Microsoft.NET
 
Dotnet Frameworks Version History
Dotnet Frameworks Version HistoryDotnet Frameworks Version History
Dotnet Frameworks Version History
 
Dot net Introduction and their usabilities
Dot net Introduction and  their usabilitiesDot net Introduction and  their usabilities
Dot net Introduction and their usabilities
 
C# .NET: Language Features and Creating .NET Projects, Namespaces Classes and...
C# .NET: Language Features and Creating .NET Projects, Namespaces Classes and...C# .NET: Language Features and Creating .NET Projects, Namespaces Classes and...
C# .NET: Language Features and Creating .NET Projects, Namespaces Classes and...
 
Evolution of .net frame work
Evolution of .net frame workEvolution of .net frame work
Evolution of .net frame work
 
ASP.Net Technologies Part-1
ASP.Net Technologies Part-1ASP.Net Technologies Part-1
ASP.Net Technologies Part-1
 
ASP.Net Technologies Part-2
ASP.Net Technologies Part-2ASP.Net Technologies Part-2
ASP.Net Technologies Part-2
 
Visual Studio
Visual StudioVisual Studio
Visual Studio
 

Destacado

ResearchTies: Adding results
ResearchTies: Adding resultsResearchTies: Adding results
ResearchTies: Adding results
jncrandell
 
ResearchTies: Adding objectives
ResearchTies: Adding objectivesResearchTies: Adding objectives
ResearchTies: Adding objectives
jncrandell
 
ResearchTies: An Overview
ResearchTies: An OverviewResearchTies: An Overview
ResearchTies: An Overview
jncrandell
 
ResearchTies: Getting started
ResearchTies: Getting startedResearchTies: Getting started
ResearchTies: Getting started
jncrandell
 
ResearchTies: Adding Sources and Repositories
ResearchTies: Adding Sources and RepositoriesResearchTies: Adding Sources and Repositories
ResearchTies: Adding Sources and Repositories
jncrandell
 
ResearchTies: Managing data
ResearchTies: Managing dataResearchTies: Managing data
ResearchTies: Managing data
jncrandell
 
ResearchTies: Adding searches
ResearchTies: Adding searchesResearchTies: Adding searches
ResearchTies: Adding searches
jncrandell
 
DotNet Introduction
DotNet IntroductionDotNet Introduction
DotNet Introduction
nandhu8124
 
Manualdeecologie 120324050857-phpapp01
Manualdeecologie 120324050857-phpapp01Manualdeecologie 120324050857-phpapp01
Manualdeecologie 120324050857-phpapp01
Gabriela Matache
 
ΣΚΟΠΟΙ & ΣΤΟΧΟΙ ΤΗΣ ΔΙΔΑΣΚΑΛΙΑΣ
ΣΚΟΠΟΙ & ΣΤΟΧΟΙ ΤΗΣ ΔΙΔΑΣΚΑΛΙΑΣΣΚΟΠΟΙ & ΣΤΟΧΟΙ ΤΗΣ ΔΙΔΑΣΚΑΛΙΑΣ
ΣΚΟΠΟΙ & ΣΤΟΧΟΙ ΤΗΣ ΔΙΔΑΣΚΑΛΙΑΣ
Ελένη Ανδρουλάκη
 

Destacado (19)

Kurikulum & pembelajaran
Kurikulum & pembelajaranKurikulum & pembelajaran
Kurikulum & pembelajaran
 
ResearchTies: Adding results
ResearchTies: Adding resultsResearchTies: Adding results
ResearchTies: Adding results
 
καθρέφτες είδωλα
καθρέφτες είδωλακαθρέφτες είδωλα
καθρέφτες είδωλα
 
ResearchTies: Adding objectives
ResearchTies: Adding objectivesResearchTies: Adding objectives
ResearchTies: Adding objectives
 
ResearchTies: An Overview
ResearchTies: An OverviewResearchTies: An Overview
ResearchTies: An Overview
 
ResearchTies: Getting started
ResearchTies: Getting startedResearchTies: Getting started
ResearchTies: Getting started
 
ResearchTies: Adding Sources and Repositories
ResearchTies: Adding Sources and RepositoriesResearchTies: Adding Sources and Repositories
ResearchTies: Adding Sources and Repositories
 
Using the ResearchTies "Share Source" Feature
Using the ResearchTies "Share Source" FeatureUsing the ResearchTies "Share Source" Feature
Using the ResearchTies "Share Source" Feature
 
Melia ameliawati
Melia ameliawatiMelia ameliawati
Melia ameliawati
 
Cretan Christmas table
Cretan Christmas tableCretan Christmas table
Cretan Christmas table
 
Using the ResearchTies "Lookup" Feature
Using the ResearchTies "Lookup" FeatureUsing the ResearchTies "Lookup" Feature
Using the ResearchTies "Lookup" Feature
 
ResearchTies: Managing data
ResearchTies: Managing dataResearchTies: Managing data
ResearchTies: Managing data
 
ResearchTies: Adding searches
ResearchTies: Adding searchesResearchTies: Adding searches
ResearchTies: Adding searches
 
Adding a research log to FamilySearch Family Tree
Adding a research log to FamilySearch Family TreeAdding a research log to FamilySearch Family Tree
Adding a research log to FamilySearch Family Tree
 
DotNet Introduction
DotNet IntroductionDotNet Introduction
DotNet Introduction
 
Manualdeecologie 120324050857-phpapp01
Manualdeecologie 120324050857-phpapp01Manualdeecologie 120324050857-phpapp01
Manualdeecologie 120324050857-phpapp01
 
Foodastic canteen
Foodastic canteenFoodastic canteen
Foodastic canteen
 
ΣΚΟΠΟΙ & ΣΤΟΧΟΙ ΤΗΣ ΔΙΔΑΣΚΑΛΙΑΣ
ΣΚΟΠΟΙ & ΣΤΟΧΟΙ ΤΗΣ ΔΙΔΑΣΚΑΛΙΑΣΣΚΟΠΟΙ & ΣΤΟΧΟΙ ΤΗΣ ΔΙΔΑΣΚΑΛΙΑΣ
ΣΚΟΠΟΙ & ΣΤΟΧΟΙ ΤΗΣ ΔΙΔΑΣΚΑΛΙΑΣ
 
El greco ppt
El greco pptEl greco ppt
El greco ppt
 

Similar a DOTNET

tybsc it asp.net full unit 1,2,3,4,5,6 notes
tybsc it asp.net full unit 1,2,3,4,5,6 notestybsc it asp.net full unit 1,2,3,4,5,6 notes
tybsc it asp.net full unit 1,2,3,4,5,6 notes
WE-IT TUTORIALS
 
.Net framework
.Net framework.Net framework
.Net framework
Raghu nath
 
Dot net interview_questions
Dot net interview_questionsDot net interview_questions
Dot net interview_questions
9292929292
 
Introdot Netc Sharp En
Introdot Netc Sharp EnIntrodot Netc Sharp En
Introdot Netc Sharp En
Gregory Renard
 
Net framework
Net frameworkNet framework
Net framework
jhsri
 

Similar a DOTNET (20)

Asp.net new
Asp.net newAsp.net new
Asp.net new
 
tybsc it asp.net full unit 1,2,3,4,5,6 notes
tybsc it asp.net full unit 1,2,3,4,5,6 notestybsc it asp.net full unit 1,2,3,4,5,6 notes
tybsc it asp.net full unit 1,2,3,4,5,6 notes
 
.Net framework
.Net framework.Net framework
.Net framework
 
The seven pillars of aspnet
The seven pillars of aspnetThe seven pillars of aspnet
The seven pillars of aspnet
 
The Seven Pillars Of Asp.Net
The Seven Pillars Of Asp.NetThe Seven Pillars Of Asp.Net
The Seven Pillars Of Asp.Net
 
dotNET frameworks
dotNET frameworksdotNET frameworks
dotNET frameworks
 
.Net introduction by Quontra Solutions
.Net introduction by Quontra Solutions.Net introduction by Quontra Solutions
.Net introduction by Quontra Solutions
 
Dot net interview_questions
Dot net interview_questionsDot net interview_questions
Dot net interview_questions
 
introduction to .net
introduction to .netintroduction to .net
introduction to .net
 
Unit I- Introduction to .NET Framework.pdf
Unit I- Introduction to .NET Framework.pdfUnit I- Introduction to .NET Framework.pdf
Unit I- Introduction to .NET Framework.pdf
 
Introdot Netc Sharp En
Introdot Netc Sharp EnIntrodot Netc Sharp En
Introdot Netc Sharp En
 
ppt about origin of .net technology .pdf
ppt about origin of .net technology .pdfppt about origin of .net technology .pdf
ppt about origin of .net technology .pdf
 
C# chap 2
C# chap 2C# chap 2
C# chap 2
 
As Pdotnet
As PdotnetAs Pdotnet
As Pdotnet
 
Dot net-interview-questions-and-answers part i
Dot net-interview-questions-and-answers part iDot net-interview-questions-and-answers part i
Dot net-interview-questions-and-answers part i
 
Dot net-interview-questions-and-answers part i
Dot net-interview-questions-and-answers part iDot net-interview-questions-and-answers part i
Dot net-interview-questions-and-answers part i
 
Architecture of .net framework
Architecture of .net frameworkArchitecture of .net framework
Architecture of .net framework
 
Visual studio.net
Visual studio.netVisual studio.net
Visual studio.net
 
Lecture-1&2.pdf Visual Programming C# .net framework
Lecture-1&2.pdf Visual Programming C# .net frameworkLecture-1&2.pdf Visual Programming C# .net framework
Lecture-1&2.pdf Visual Programming C# .net framework
 
Net framework
Net frameworkNet framework
Net framework
 

Último

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Último (20)

Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 

DOTNET

  • 1. DOTNET FRAMEWORK KGiSL iTech
  • 2. Introduction to .NET  .NET technology was introduced by Microsoft.  .NET is not an operating system  .NET is not a programming language.  .NET is a framework. KGiSL iTech Page 2
  • 3. Introduction to .NET(Contd…)  Dot Net Framework is a Programming model of the .NET environment for building, deploying, and running Web-based applications, smart client applications, and XML Web services .   A set of technologies for developing and using components to create:  Web Forms  Web Services  Windows Applications  The .NET Framework includes the common language runtime and class libraries.  .NET provides a common set of class libraries, which can be accessed from any .NET based programming language. KGiSL iTech Page 3
  • 4. Introduction to .NET(Contd…)  It is a new, easy, and extensive programming platform.  It is not a programming language, but it supports several programming languages.  By default .NET comes with few programming languages including C# (CSharp), VB.NET, J# and managed C++. KGiSL iTech Page 4
  • 5. Introduction to .NET(Contd…) Following are the core features of Dot Net Framework  Simplified Programming Model  Simplified Deployment  Programming Language Integration  Garbage Collection  Consistent Error Handling KGiSL iTech Page 5
  • 6.  Platform Independency  Language Independency  Language Interoperability Security  For Windows Applications - net framework supports “Code access security and “role Based security”  For web and mobile applications - Security can be achieved using Configuration files like machine.config and web.config. KGiSL iTech Page 6
  • 7. Application Architecture 1. Single Tier Architecture 2. Two Tier Architecture 3. Three Tier Architecture Single Tier Architecture: The one-tier, or single-tier, architecture is a system in which the database, application, and presentation services (the user interface) all reside on one system. . KGiSL iTech Page 7
  • 8. Application Architecture (Contd…) Two Tier Architecture: - A two tier system consists of a client and a server. - A two-tier application is one in which the presentation services and the database reside on different systems. - The presentation services (user interface) layer usually includes application logic. KGiSL iTech Page 8
  • 10. Application Architecture (Contd…) Three Tier Architecture:  The third tier(Middle tier) is between the user interface(client) and the data management(server).  This middle tier provides process management where business logic and rules are executed. KGiSL iTech Page 10
  • 12. Three Tier Architecture  Tier 1: the client contains the presentation logic, including simple control and user input validation. This application is also known as a thin client.  Tier 2: the middle tier is also known as the application server, which provides the business processes logic and the data access.  Tier 3: the data server provides the business data. These are some of the advantages of a three-tier architecture:  It is easier to modify or replace any tier without affecting the other tiers.  Separating the application and database functionality means better load balancing. KGiSL iTech Page 12
  • 13. Application Architecture (Contd…) Basically,in three tier architecture 3 layers are used to create a projects. 1. UI Layer - UI which includes pages,user controls,CSS,Java Scripts. 1. Business Layer - All business rules performed here. 1. Data Access Layer - All data access code like connecting to database and getting the details are done here. KGiSL iTech Page 13
  • 15. Versions of .NET .NET Framework Visual Studio .NET Framework 1.0 Visual Studio 2002 .NET Framework 1.1 Visual Studio 2003 .NET Framework 2.0 Visual Studio 2005 .NET Framework 3.5 Visual Studio 2008 .NET Framework 4.0 Visual Studio 2010 KGiSL iTech Page 15
  • 16. VS.NET(Visual Studio.NET)  VS.NET is just an editor, provided by Microsoft to help developers write .NET programs easily .  VS.NET editor automatically generates lot of code, allows developers to drag and drop controls to a form, provide short cuts to compile and build the application etc.  VS.NET has several child windows to assist you in the application development.  These windows are attached on the left, bottom and right sides of the main window. KGiSL iTech Page 16
  • 17. VS.NET(Visual Studio.NET) (Contd…)  Some of the most commonly used child windows are explained below. Most of these windows will be enabled only when you have created a project and working on a WebForm/WinForm. Tool Box • Toolbox provides all the drag and drop controls for your application. • Depending on the kind of application you are working on, the toolbox will show appropriate controls. KGiSL iTech Page 17
  • 19. VS.NET(Visual Studio.NET) (Contd…) Source(HTML) & Design Mode • If you are developing a web application, you can switch between design mode and HTML mode for any web form. • When you are in HTML mode, it will show you the HTML tags and ASP.NET code and you can manually edit it. • You can switch to the Design mode by clicking the Design button on BOTTOM LEFT corner of VS.NET. • In design mode, you can see how your ASP.NET page is going to look like when some one view your web page. Also, you can drag and drop controls from the toolbox, which will automatically generate the HTML for it. KGiSL iTech Page 19
  • 20. Source(HTML) & Design Mode KGiSL iTech Page 20
  • 21. VS.NET(Visual Studio.NET) (Contd…)  Solution Explorer Window • Solution Explorer, located on TOP RIGHT corner of VS.NET, displays your solution, all projects included in each solution and the list of files in each project. They are listed in the form of a tree control.  Output Window • Output window, located on BOTTOM LEFT corner of VS.NET, displays the result of your project compilation. When you compile your project, all errors, warnings and compilation results will be displayed in this window. KGiSL iTech Page 21
  • 23. VS.NET(Visual Studio.NET) (Contd…)  Task List Window • It shows individual tasks. Typically, when you compile your project, all errors and warnings will be added to your task list. You can double click on any item in the task list to go directly to the code associated with the task.  Properties Window • It displays the different types of property for each and every control. The common property for all controls are Font, Color, Forecolor and so on.  Code behind window - Code-behind model, which places this code in a separate file or in a specially designated script tag. - Code-behind files typically have names like Firstpage.aspx.cs or Firstpage.aspx.vb KGiSL iTech Page 23
  • 25. Code Behind Window KGiSL iTech Page 25
  • 26. Shortcut Keys  Compilation and Execution – F5  Toolbox Window– Ctrl + Alt + X  Property Window – F4  Solution Explorer – Ctrl + Alt + L  Design View to Code View – F7(Code Behind Window)  Code View to Design View – Shift + F7(Source Window) KGiSL iTech Page 26
  • 27. KGiSL iTech Page 27
  • 28. .NET Framework Common Language Runtime - CLR manages code execution at runtime - Memory management, thread management, etc. Common Language Runtime Operating System KGiSL iTech Page 28
  • 29. .NET Framework Base Class Library - Object-oriented collection of reusable types - Collections, I/O, Strings, … .NET Framework (Base Class Library) Common Language Runtime Operating System KGiSL iTech Page 29
  • 30. .NET Framework Data Access Layer - Access relational databases - Disconnected data model - Work with XML ADO .NET and XML .NET Framework (Base Class Library) Common Language Runtime Operating System KGiSL iTech Page 30
  • 31. .NET Framework ASP.NET & Windows Forms - Create application’s front-end – Web-based user interface, Windows GUI, Web services, … ASP .NET Windows Web Forms Web Services Forms Mobile Internet Toolkit ADO .NET and XML .NET Framework (Base Class Library) Common Language Runtime Operating System KGiSL iTech Page 31
  • 32. .NET Framework Programming Languages - Use your favorite language C++ C# VB.NET Perl J# … ASP .NET Windows Web Forms Web Services Forms Mobile Internet Toolkit ADO .NET and XML .NET Framework (Base Class Library) Common Language Runtime Operating System KGiSL iTech Page 32
  • 33. .NET Framework Common Language Specification C++ Common Language Specification… C# VB Perl J# ASP .NET Windows Web Forms Web Services Forms Mobile Internet Toolkit ADO .NET and XML .NET Framework (Base Class Library) Common Language Runtime Operating System KGiSL iTech Page 33
  • 34. .NET Framework Visual Studio .NET C++ C# VB Perl J# … Common Language Specification Visual Studio .NET Visual Studio .NET ASP .NET Windows Web Forms Web Services Forms Mobile Internet Toolkit ADO .NET and XML .NET Framework (Base Class Library) Common Language Runtime Operating System KGiSL iTech Page 34
  • 35. KGiSL iTech Page 35
  • 36. .NET Architecture  NET Compliant Language - Language which supports .NET Programming like Vb.NET,C#,C++ and J# etc .  .NET Application - Application which is developed by using .NET Framework. - Like Windows Application, Web Application, Web Service and Mobile Application.  .NET Framework Class Library - It consist of thousands of Pre-developed classes that can be used to build application. KGiSL iTech Page 36
  • 37. .NET Architecture  Common Type System(CTS) - A superset of the data types used by most modern programming languages. - CTS, common type system is the one which brings all .NET languages data types on a common platform.  Common Language Specification(CLS) - A subset of CTS that allows code written in different languages to interoperate What languages? - Microsoft: C++, Visual Basic, C#, JScript - Third-Party: Cobol, Eiffel, Smalltalk, Scheme, Oberon, Haskell, Java, Python, Perl, … KGiSL iTech Page 37
  • 38. CLR  Common Language Runtime(CLR) - Its a virtual machine of Microsoft's .NET, - During Compile time the Source code(C#, VB.Net..) is converted into Intermediate Language (MSIL),During Runtime this IL is converted to native code to Operating System by Just In Time (JIT) of CLR KGiSL iTech Page 38
  • 39. KGiSL iTech Page 39
  • 40. The CLR Compilation Assembly Source code Compiler C++, C#, J#, DLL or EXE Visual Basic or any .NET language KGiSL iTech Page 40
  • 41. KGiSL iTech Page 41
  • 42. KGiSL iTech Page 42
  • 43. Common Language Runtime Services  Code management  Conversion of MSIL to native code  Loading and execution of managed code  Creation and management of metadata  Verification of type safety  Insertion and execution of security checks  Memory management and isolation  Handling exceptions across languages  Interoperation between .NET Framework objects and COM objects and Win32 DLLs  Automation of object layout for late binding  Developer services (profiling, debugging, etc.) KGiSL iTech Page 43
  • 44. Applications developed by .NET - Windows Application - Web Application - Web Services - Console Applications - Mobile Applications KGiSL iTech Page 44
  • 45. CLR - The execution model Source VB C# C++ code Unmanaged Compiler Compiler Compiler component Managed Assembly Assembly Assembly code IL code IL code IL code Common language runtime JIT compiler JIT compiler Native code Operating system services Page 45 KGiSL iTech
  • 46.  NET supports two kinds of coding  Managed Code  Unmanaged Code  Managed Code - The code, which is developed in .NET framework, is known as managed code. This code is directly executed by CLR with help of managed code execution.  Unmanaged Code - The code, which is developed outside .NET Framework is known as unmanaged code. KGiSL iTech Page 46
  • 47. Assembly  The .NET framework introduces assemblies as the main building blocks of your application.  An Assembly is a  logical unit of code  An application can contains one or more assemblies.  An assembly can be formed in one or more files.  Assembly physically exist as DLLs or EXEs  When you compile your source code by default the exe/dll generated is actually an assembly KGiSL iTech Page 47
  • 48. Assembly Contd….  An assembly can consist of the following four elements: 1.Source code, compiled into MS intermediate language (MSIL). This code file can be either an EXE file or a DLL file. 2.The assembly manifest, - which is a collection of metadata that describes assembly name, - culture settings, - list of all files in the assembly, - security identity, version requirements, - and references to resources. - The assembly manifest can be stored with the intermediate code, or in a standalone file that contains only assembly manifest information. 1.Type metadata 2.Resources KGiSL iTech Page 48
  • 49. Assembly Contd….  Assembly Version - An assembly can have two types of versions. 1. "Version Number" - consists of a four-part string with the following format: - <Major Version>.<Minor Version>.<Build Number>.<Revision Number> - For example a version number of 3.5.20.1 indicates 3 as the major version, 5 as the minor version, 20 as the build number, and 1 as the revision number. KGiSL iTech Page 49
  • 50. Assembly Contd…. 2. The second type of versions is called "Informational Version". -The informational version consists of a string that contains the version number besides additional information like packaging, marketing literature, or product name. KGiSL iTech Page 50
  • 51. Private Assembly and Shared Assembly Private Assembly  The assembly which is used only by a single application is called as private assembly.  This DLL will be used by your client application only and not by any other application.  In order to run the application properly your DLL must reside in the same folder in which the client application is installed.  Thus the assembly is private to your application. Shared Assembly  Creating a general purpose DLL which provides functionality which will be used by variety of applications.  This type of DLL’s are placed in 'global assembly cache'.  Such assemblies are called as shared assemblies KGiSL iTech Page 51
  • 52. Global Assembly Cache  Global assembly cache is nothing but a special disk folder where all the shared assemblies will be kept.  It is located under <drive>:WinNTAssembly folder. KGiSL iTech Page 52