software incubator

40
Saturday, March 12, 2022 Software Incubator .NET Training Program 1 .NET Framework Ashutosh Pandey Student Incharge - Software Incubator Computer Science and Engineering Ajay Kumar Garg Engineering College, Ghaziabad Email: [email protected], Phone: 9990687407 .NET Training Program

Upload: puneet-bansal

Post on 11-Nov-2015

261 views

Category:

Documents


1 download

DESCRIPTION

this is software incubator file

TRANSCRIPT

  • *Software Incubator .NET Training Program*.NET Framework

    Ashutosh PandeyStudent Incharge - Software IncubatorComputer Science and EngineeringAjay Kumar Garg Engineering College, GhaziabadEmail: [email protected], Phone: 9990687407.NET Training Program

    Software Incubator

  • OverviewWhat is .NET? - Technology.NET Framework - collectionVisual Studio - IDEC# and VB common languages2 tier architecture3 tier architectureN tier architecture

    *Software Incubator*

    Software Incubator

  • Why .Net?Why C..brainstormingWhy Java ..BrainstormingNow why .net ???Fast application developmentNo new conceptFastest emerging technology in IT MarketJob OrientedHas a wide range of applicationsObject Oriented(close to real world)

    *Software Incubator*

    Software Incubator

  • What is Microsoft .NET?.NET is a Framework that provides a common platform for many languages.44 languages in the beginning..so can u guess what is the no now ???The .NET Framework is an environment for building, deploying, and running Web applications and Web Services

    *Software Incubator*

    Software Incubator

  • Advantages of .NET Direct Support for SecurityConsistent Programming ModelWindows Presentation Format Support with XAMLIntelli-senseDebuggingGreatly simplifies language interoperability. Supports strongly typed languagesCalling from and to any other .NET language becomes simpleIt uses industry-standard protocols such as TCP/IP, XML, SOAP and HTTPEasy Application Deployment and MaintenanceSimplified Development Efforts *Software Incubator*

    Software Incubator

  • .NET Framework*Software Incubator*

    Software Incubator

  • .NET Framework.NET Framework consists of 3 main parts:Common Language RuntimeMSILFramework Classes/Libraries

    *Software Incubator*

    Software Incubator

  • The .NET FrameworkBase Class LibraryCommon Language SpecificationCommon Language RuntimeADO.NET: Data and XMLVBC++C#Visual Studio.NETASP.NET: Web Servicesand Web FormsJScriptWindows FormsWindows Forms*Software Incubator*

    Software Incubator

  • Common Language Runtime (CLR)A common runtime for all .NET languagesCommon type systemCommon metadataIntermediate Language (IL) to native code compilersMemory allocation and garbage collectionCode execution and securityOver 44 languages supported todayC#, VB, Jscript, Visual C++ from MicrosoftPerl, Python, Smalltalk, Cobol, Haskell, Mercury, Eiffel, Oberon, Oz, Pascal, APL, CAML, Scheme, etc.

    *Software Incubator*

    Software Incubator

  • Common Language Runtime (CLR)CLR works like a virtual machine in executing all languages. All .NET languages must obey the rules and standards imposed by CLR. Examples:Object declaration, creation and useData types,language librariesError and exception handlingInteractive Development Environment (IDE)

    *Software Incubator*

    Software Incubator

  • Intermediate Language (IL).NET languages are not compiled to machine code. They are compiled to an Intermediate Language (IL).

    CLR accepts the IL code and recompiles it to machine code. The recompilation is just-in-time (JIT) meaning it is done as soon as a function or subroutine is called.

    The JIT code stays in memory for subsequent calls. In cases where there is not enough memory it is discarded thus making JIT process interpretive.

    *Software Incubator*

    Software Incubator

  • Compilation in .NET*Software IncubatorCode in VB.NETCode in C#Code in another .NET LanguageVB.NET compilerC# compilerAppropriateCompilerIL(IntermediateLanguage) codeCLR just-in-timeexecution*

    Software Incubator

  • Common Language RuntimeMultiple Language SupportCTS is a rich type system built into the CLRImplements various types (int, double, etc)And operations on those typesCLS is a set of specifications that language and library designers need to followThis will ensure interoperability between languages*Software Incubator*

    Software Incubator

  • Common Language Runtime (CLR)Enables cross-language interoperabilityCommon Language Specification describes interoperability requirementsLanguage/Hardware/OS IndependentCompact framework for small devicesIndustrial strength Garbage collectorDesigned for multi-processor servers*Software Incubator*

    Software Incubator

  • CLR: Execution ModelVBSource codeCompilerC++C#CompilerCompilerAssemblyIL CodeAssemblyIL CodeAssemblyIL CodeOperating System ServicesCommon Language RuntimeJIT CompilerNative CodeManagedcodeUnmanagedComponent*Software Incubator*

    Software Incubator

  • .NET Framework LibrariesSingle consistent set of object oriented class libraries to enable building distributed web applications (Unified Classes)

    Built using classes arranged across logical hierarchical namespacesFor example: System.Data.SQL

    Work with all CLR languagesNo more VBRun or MFC divide*Software Incubator*

    Software Incubator

  • .NET Framework Libraries*Software Incubator*

    Software Incubator

    _1034280560.vsd

    _1034283757.vsd

    _1034284278.vsd

    _1034965466.vsd

    _1034281237.vsd

    _1034280468.vsd

  • ASP.NETASP.NET is a new programming framework designed to make web apps easier to: Build, Deploy, Run

    Radical advancement of todays ASPBroader programming language supportVisual Basic.NET, Jscript.NET, C#Easier page programming modelNamespacesRicher XML features and integrationXCopy/FTP deploymentBetter reliability and recoveryExcellent Visual Studio designer support*Software Incubator*

    Software Incubator

  • ASP.NETASP.NET is compiled, not interpretedBetter performanceEarly binding, strong typing, JIT compiling to native codeConfiguration settings in XML-based filesSession state can now be shared across a web farm of ASP.NET servers.NET State Server Process manages stateApplication state is still single severASP.NET detects and recovers from problemsAccess violations, memory leaks, deadlocksASP.NET supports pre-emptive cycling of appsTime and request based settings*Software Incubator*

    Software Incubator

  • ASP.NETASP.NET,the platform services that allow to program Web Applications and Web Services in any .NET language

    ASP.NET Uses .NET languages to generate HTML pages. HTML page is targeted to the capabilities of the requesting Browser

    ASP.NET Program is compiled into a .NET class and cached the first time it is called. All subsequent calls use the cached version.*Software Incubator*

    Software Incubator

  • Logical Evolution of ASPSupports multiple languagesImproved performanceControl-based, event-driven execution modelMore productiveCleanly encapsulated functionalityASP.NET*Software Incubator*

    Software Incubator

  • ASP.NET Web ServicesA technical definitionA programmable application component accessible via standard Web protocols*Software Incubator*

    Software Incubator

  • It is just an applicationthat exposes its features and capabilities over the networkusing XMLto allow for the creation of powerful new applications that are more than the sum of their partsWeb Services*Software Incubator*

    Software Incubator

  • ASP.NET Server ControlsServer controls are tags that are understood by the server.There are three kinds of server controls:HTML Server Controls - Traditional HTML tags Web Server Controls - New ASP.NET tags Validation Server Controls - For input validation

    *Software Incubator*

    Software Incubator

  • Allows clean cut codeCode-behind Web FormsEasier for tools to generateCode within is compiled then executed Improved handling of state informationSupport for ASP.NET server controlsData validationData bound gridsASP.NET Web Forms*Software Incubator*

    Software Incubator

  • ADO.NET (Data and XML)New objects (e.g., DataSets)Separates connected / disconnectedissuesLanguage neutral data accessUses same types as CLRGreat support for XML*Software Incubator*

    Software Incubator

  • Visual Studio.NET*Software Incubator*

    Software Incubator

  • Visual Studio.NETDevelopment tool that contains a rich set of productivity and debugging features*Software Incubator*

    Software Incubator

  • Visual Studio.NETIntegrated Development EnvironmentVisual Basic.NETMany language enhancementsInheritance,Overloading, Free Threading Visual C++Integration with .NET Framework with managed extensions (classes)C#New development languageBased on C/C++ with Garbage Collection/Memory ManagementJUMP (Java User Migration Path) to .NET (1/25/01)

    Visual J++ has been removed from the Visual Studio suite currently but it was a part of the earlier versions.

    *Software Incubator*

    Software Incubator

  • VS.NET FeaturesSingle IDE for all LanguagesServer ExplorerEvent Viewer, Message Queues, ServicesSQL Databases, Data Connection, Etc.Integrated IE BrowserHTML/XML EditorsMacros/Macro ExplorerSolution ExplorerTabbed DocumentsDynamic HelpCommon Forms EditorVB.NET, C++, and C#*Software Incubator*

    Software Incubator

  • C#*Software Incubator*

    Software Incubator

  • Intro to C#Design Goals of C#Component Orientated LanguageRobust and Durable SoftwareFeaturesClassesNamespacesNo header filesVB.NET vs. C#Ability to embed C++ code in C# codeElegance of C/C++ language*Software Incubator*

    Software Incubator

  • Design Goals C#Component OrientedProperties, methods, eventsRobust and DurableGarbage collection (No memory leaks and stray pointers)Exception HandlingType-safety (No uninitialized variables)Based on C++InteroperabilitySupport for XML, SOAP*Software Incubator*

    Software Incubator

  • IIS Internet Information ServicesInternet Information ServiceIIS (Internet Information Services) is Microsoft's Internet serverIIS comes as a free component with Windows serversIIS is also a part of Windows 2000 and XP Professional How to install*Software Incubator*

    Software Incubator

  • How does ASP.NET work?Requests an HTML file, the server returns the file Requests an ASP.NET file, IIS passes the request to the ASP.NET engine on the server The ASP.NET engine reads the file, line by line, and executes the scripts in the file ASP.NET file is returned to the browser as plain HTML*Software Incubator*

    Software Incubator

  • J2EE and .NETExecution EngineJ2EEJava source code compiles into machine-independent byte codeRuntime Environment : JVM.NETAny compliant language compiles into MSILRuntime environment : CLR

    Both JVM and CLR ,support services, such as code verification, memory management via garbage collection, and code security

    Software Incubator

  • J2EE and .NETCross Platform Portability

    J2EEPlatform Independent JDK should exist on target machine.NETSupports Windows platformCLR should exist on target machine Can support other platforms provided it has its own JIT complier

    Software Incubator

  • J2EE and .NETLanguage Support

    J2EETied to Java Supports other languages via interface technology.NETLanguage independentSupports any language if mapping exists from that language to IL

    Software Incubator

  • J2EE and .NETTools SupportJ2EECan employ any number of toolsPro :Developer has a great deal of choiceCon :Difficulty in choosing a right tool for a given job

    .NETVisual Studio.NET, single IDE for building an application

    Software Incubator

  • Questions/Queries ?? Visit us @ www.akgec.org/si

    Course material available atwww.akgec.org/si/downloads *Software Incubator*

    Software Incubator

    Ajag Kumar Garg Engineering College, Ghaziabad*Ajag Kumar Garg Engineering College, Ghaziabad*Ajag Kumar Garg Engineering College, Ghaziabad*This chart summarizes the status of Microsoft SNA Server 4.0.By the way, SNA Server 4.0 is available now as a standalone product and as part of thenewest version of Microsoft BackOffice Server - version 4.0.Ajag Kumar Garg Engineering College, Ghaziabad*

    Ajag Kumar Garg Engineering College, Ghaziabad*The .NET framework exposes numerous classes to the developer. These classes allow the development of rich client applications and Web based applications alike. In the above slide these classes have been divided into 4 areas.ASP.NET provides the core Web infrastructure such as Web Forms for UI based development and Web Services for programmatic interface development, User interface development on the Windows platform can be done using Windows FormsADO.NET and XML provide the functionality for data access.Finally, the core base classes provide infrastructure services such as security, transaction management etc.

    Ajag Kumar Garg Engineering College, Ghaziabad*Ajag Kumar Garg Engineering College, Ghaziabad*Ajag Kumar Garg Engineering College, Ghaziabad*We already know that an assembly does NOT contain native binary code, but instead MSIL code. Obviously before the MSIL code can be executed it must be converted into native binary instructions. Converted? Does this mean interpreted? NO! The MSIL code is compiled and not thrown away. This means that next time the code is requested it is already in the form of machine instructions and thus this mechanism in the log run is far more efficient than an interpreter for example.

    The compilation is carried out by a JIT (Just In Time) compiler. Does the compiler compile all of the code in one go? The answer to this question is NO. If this approach was taken there would be a long delay during the applications initialisation, and realistically not all the code within the module will be required in one go. Instead, when the code is loaded a stub is connected to each method. When a method is called via the stub the compiler generates the binary native code. This mechanism goes a long way to describing why the compiler is called a JIT compiler.

    Compiled code is only saved in the same process (run) of an application. And even then it's not guaranteed. we do what's called "code-pitching" which means we through away cold (or little used) JITed code if memory pressure requires it. We do persisted JITed code in the install time scenario.

    The benefit for to this system is obviously portability. A couple of things to think about -

    Lets imagine youve built a managed component for the Intel Pentium III platform. It works fine. Later in the year Intel release a super new chip. When Microsoft release a new version of the JIT, its possible that this brand spanking new version of the JIT will have learned a few new tricks e.g. to make use of the new improved instruction set of the new Intel chip or new CPU registers!

    And finally, Microsoft plan to offer a tool called PREJIT. This tool will compile your assemblies into native code and save the resultant binary executable code to disk. When the assemblies are next loaded the binary code is already available thus improving startup time and execution speeds.

    Ajag Kumar Garg Engineering College, Ghaziabad*The first incarnation of ASP proved very successful. As part of the .NET Framework, Microsoft support ASP.NET. ASP.NET is a logical evolution of ASP, but addresses many of the issues associated with ASP.

    ASP.NET is now compiled and not interpreted. A great deal of work has also been done to make sure that ASP.NET development becomes cleaner and more productive.

    Ajag Kumar Garg Engineering College, Ghaziabad*Technically a Web Service is A programmable application component accessible via standard Web protocols. In other words, its a component that can be called remotely, over the internet, from a client application.

    Take our previous example of a Web application that required stock information. This Web application possibly would not have that information readily at hand. However, what if another Web application (possibly on another machine, on the other side of the planet) did? Further more what if this remote machine exposed a component with a method such as GetStockPrice (string strCompanyName). Surely this would make life much easier, making separate Web sites act like one big application.

    Web service consumers can send and receive messages using XML, and therefore the audience of clients is unlimited.

    Ajag Kumar Garg Engineering College, Ghaziabad*Ajag Kumar Garg Engineering College, Ghaziabad*The Web Form is basically an ASP.NET file (.ASPX) that makes use of the new features of ASP.NET. ASP.NET in conjunction with Web Forms eliminate a number of the traditional problems associated with ASP.

    ASP.NET provides the developer with the option of separating the code from the UI elements using code-behind forms. Using such a mechanism will also make Form tools much easier to develop.

    ASP.NET also conquers one of the annoying side effects of using ASP state. Imagine that a user has filled in an ASP generated form and then hits the submit button. At this stage IIS (server side) will regenerate the form and as a side effect all the information that the user entered into the form will be erased. In many situations this is unacceptable, and many an ASP developer has struggled to find work arounds (most of which may not be considered elegant). Fortunately, ASP.NET allows controls to maintain state.

    ASP.NET supports a number of new rich server controls. These controls can be used to improve data connectivity (data bound controls) and data validation.

    Ajag Kumar Garg Engineering College, Ghaziabad*Ajag Kumar Garg Engineering College, Ghaziabad*

    Ajag Kumar Garg Engineering College, Ghaziabad*

    Ajag Kumar Garg Engineering College, Ghaziabad*

    Ajag Kumar Garg Engineering College, Ghaziabad*Ajag Kumar Garg Engineering College, Ghaziabad