Visual studio
Upcoming SlideShare
Loading in...5
×
 

Visual studio

on

  • 732 views

if u have any information about the Visual Studio...............

if u have any information about the Visual Studio...............

Statistics

Views

Total Views
732
Slideshare-icon Views on SlideShare
732
Embed Views
0

Actions

Likes
0
Downloads
18
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • 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 the newest version of Microsoft BackOffice Server - version 4.0.
  • 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 Forms ADO.NET and XML provide the functionality for data access. Finally, the core base classes provide infrastructure services such as security, transaction management etc.
  • 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 - Let’s imagine you’ve 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, it’s 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.

Visual studio Visual studio Presentation Transcript

  • Introduction to Visual Studio.NET Indra Phulwani MCA Lecturer
  • Agenda
    • What is .NET?
    • .NET Framework
    • Visual Studio.NET
    • C#
    • Visual Basic.NET
    • Q & A
  • What is Microsoft .NET?
    • .NET represents an advanced new generation of software that will drive the Next Generation Internet. Its purpose is to make information available any time, any place, and on any device.
    • Quick Definition
      • .NET is an initiative to integrate all Microsoft products with the “Next Generation” web.
  • What is Microsoft .NET? (Cont.)
    • Core components of .NET are:
      • .NET Infrastructure and Tools
      • .NET Services
        • An integrated set of building block services for the new Internet, including Passport.NET (for user authentication), and services for file storage, user preference management, calendar management, and many others.
      • .NET User Experience
        • A broader, more adaptive user experience, where information is delivered in a variety of ways on a variety of different devices.
      • .NET Device Software
        • Enables a new breed of smart Internet devices that can leverage Web Services
      • http://www.microsoft.com/business/vision/netvision.asp
  • .NET Infrastructure and Tools
    • .NET Infrastructure and Tools
      • .NET Enterprise Servers
        • SQL 2000
        • Exchange 2000
        • ISA 2000
        • Host Integration Server 2000
        • Application Center 2000
        • BizTalk Server 2000
        • Commerce Server 2000
      • .NET Framework
      • Windows.NET
        • “ Whistler” (Windows XP)
  • Directory Structure
    • App_Code 
      • This is the "raw code" directory. The ASP.NET server automatically compiles files (and subdirectories) in this folder into an assembly which is accessible in the code of every page of the site. App_Code will typically be used for data access abstraction code, model code and business code. Also any site-specific http handlers and modules and Web service implementation go in this directory. As an alternative to using App_Code the developer may opt to provide a separate assembly with precompiled code.
    • App_Data 
      • The App_Data ASP.NET Directory is the default directory for any database used by the ASP.NET Website. These databases might include Access (mdb) files or SQL Server (mdf) files. The App_Data is the only directory with Write Access enabled for the ASP.NET web application
  • Directory structure
    • App_LocalResources 
      • E.g. a file called CheckOut.aspx.fr-FR.resx holds localized resources for the French version of the CheckOut.aspx page. When the UI culture is set to French, ASP.NET will automatically find and use this file for localization.
    • App_GlobalResources 
      • Holds resx files with localized resources available to every page of the site. This is where the ASP.NET developer will typically store localized messages etc. which are used on more than one page.
  • Directory structure
    • App_Themes 
      • Adds a folder that holds files related to themes which is a new ASP.NET feature that helps ensure a consistent appearance throughout a Web site and makes it easier to change the Web site’s appearance when necessary.
    • App_WebReferences 
      • holds discovery files and WSDL files for references to Web services to be consumed in the site.
    • Bin 
      • Contains compiled code (.dll files) for controls, components, or other code that you want to reference in your application. Any classes represented by code in the Bin folder are automatically referenced in your application.
  • Directives
    • @ Page Directive.
    • @ Master Directives.
    • @ Control Directives.
    • @ Import Directives.
    • @ Implements Directives.
    • @ Register Directives.
    • @ Assembly Directives.
    • @ Previous Page Type.
    • @ Reference Type.
    • @ OutputCache Type.
  • .NET FEATURES
    • Easy Programming Model.
    • Flexible Language Option.
    • Great Tool Support.
    • Rich Class FrameWork.
    • Enahance Reliability
    • Easy Deployment
    • Dynamic Update of running Applications
  • Difference between Asp and Asp.Net
    • ASP.NET
    • ASP.Net web forms have a code behind file which contains all event handling code.
    • ASP.Net web forms inherit the class written in code behind.
    • ASP.Net web forms use full fledged programming language.
    • ASP.Net web applications are configurable (web.config)
    • ASP.Net webforms can use custom controls through the @ register directive
    • ASP.Net web forms have ADO.Net which supports XML integration and integration of data from two or more data sources
  • Difference between Asp and Asp.Net
    • ASP
    • ASP does not have such facility to separate programming logic from design.
    • ASP does not have the concept of inheritance.
    • ASP pages use scripting language.
    • ASP applications are not.
    • It is not available with ASP.
    • while ASP has ADO which is a simple COM object with limited facilities.
  • .NET Framework
  • .NET Framework
    • .NET Framework consists of 3 main parts:
      • Common Language Runtime
      • Framework Classes/Libraries
      • ASP.NET
  • The .NET Framework Base Class Library Common Language Specification Common Language Runtime ADO.NET: Data and XML VB C++ C# Visual Studio.NET ASP.NET: Web Services and Web Forms JScript … Windows Forms Windows Forms
  • Common Language Runtime (CLR)
    • A common runtime for all .NET languages
      • Common type system
      • Common metadata
      • Intermediate Language (IL) to native code compilers
      • Code execution and security
    • Over 15 languages supported today
      • C#, VB, Jscript, Visual C++ from Microsoft
      • Perl, Python, Smalltalk, Cobol, Haskell, Mercury, Eiffel, Oberon, Oz, Pascal, APL, CAML, Scheme, etc.
  • Common Language Runtime (CLR)
    • Enables cross-language interoperability
      • Common Language Specification describes interoperability requirements
    • Language/Hardware/OS Independent
      • Compact framework for small devices
    • Industrial strength Garbage collector
      • Designed for multi-processor servers
  • CLR: Execution Model VB Source code Compiler C++ C# Compiler Compiler Assembly IL Code Assembly IL Code Assembly IL Code Operating System Services Common Language Runtime JIT Compiler Native Code Managed code Unmanaged Component
  • .NET Framework Libraries
    • Single consistent set of object oriented class libraries to enable building distributed web applications (Unified Classes)
    • Built using classes arranged across logical hierarchical namespaces
      • For example: System.Data.SQL
    • Work with all CLR languages.
  • Common Type System
    • In Microsoft's .NET Framework , the Common Type System (CTS) is a standard that specifies how Type definitions and specific values of Types are represented in computer memory. It is intended to allow programs written in different programming languages to easily share information.
  • Functions of CTS
    • Cross Language Integration.
    • Object Oriented model that support many programming language.
    • It allow object written in different language interact with each other.
    • CTS define rules that allow datatypes
    • and object in diff. language interact with each other.
  • Common Type System
    • Type Category:-
      • Value Type.
      • Reference Type
  • Common Type System
    • Boxing
    • Converting Value type to Reference type is Known as Boxing.
    • UnBoxing
    • Converting Reference type to Value type is known as Unboxing.
  • .NET Framework Libraries
  • ASP.NET
    • ASP.NET is a new programming framework designed to make web apps easier to:
      • Build, Deploy, Run
    • Radical advancement of today’s ASP
      • Broader programming language support
        • Visual Basic.NET, Jscript.NET, C#
      • Easier page programming model
        • Namespaces
      • Excellent Visual Studio designer support
  • ASP.NET
    • ASP.NET is compiled, not interpreted
      • Better performance
      • strong typing, JIT compiling to native code
    • Configuration settings in XML-based files
    • Session state can now be shared across a web form of ASP.NET server
    • ASP.NET detects and recovers from problems
      • Access violations, memory leaks, deadlocks