Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Visual studio

777 views

Published on

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

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Visual studio

  1. 1. Introduction to Visual Studio.NET Indra Phulwani MCA Lecturer
  2. 2. Agenda <ul><li>What is .NET? </li></ul><ul><li>.NET Framework </li></ul><ul><li>Visual Studio.NET </li></ul><ul><li>C# </li></ul><ul><li>Visual Basic.NET </li></ul><ul><li>Q & A </li></ul>
  3. 3. What is Microsoft .NET? <ul><li>.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. </li></ul><ul><li>Quick Definition </li></ul><ul><ul><li>.NET is an initiative to integrate all Microsoft products with the “Next Generation” web. </li></ul></ul>
  4. 4. What is Microsoft .NET? (Cont.) <ul><li>Core components of .NET are: </li></ul><ul><ul><li>.NET Infrastructure and Tools </li></ul></ul><ul><ul><li>.NET Services </li></ul></ul><ul><ul><ul><li>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. </li></ul></ul></ul><ul><ul><li>.NET User Experience </li></ul></ul><ul><ul><ul><li>A broader, more adaptive user experience, where information is delivered in a variety of ways on a variety of different devices. </li></ul></ul></ul><ul><ul><li>.NET Device Software </li></ul></ul><ul><ul><ul><li>Enables a new breed of smart Internet devices that can leverage Web Services </li></ul></ul></ul><ul><ul><li>http://www.microsoft.com/business/vision/netvision.asp </li></ul></ul>
  5. 5. .NET Infrastructure and Tools <ul><li>.NET Infrastructure and Tools </li></ul><ul><ul><li>.NET Enterprise Servers </li></ul></ul><ul><ul><ul><li>SQL 2000 </li></ul></ul></ul><ul><ul><ul><li>Exchange 2000 </li></ul></ul></ul><ul><ul><ul><li>ISA 2000 </li></ul></ul></ul><ul><ul><ul><li>Host Integration Server 2000 </li></ul></ul></ul><ul><ul><ul><li>Application Center 2000 </li></ul></ul></ul><ul><ul><ul><li>BizTalk Server 2000 </li></ul></ul></ul><ul><ul><ul><li>Commerce Server 2000 </li></ul></ul></ul><ul><ul><li>.NET Framework </li></ul></ul><ul><ul><li>Windows.NET </li></ul></ul><ul><ul><ul><li>“ Whistler” (Windows XP) </li></ul></ul></ul>
  6. 6. Directory Structure <ul><li>App_Code  </li></ul><ul><ul><li>This is the &quot;raw code&quot; 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. </li></ul></ul><ul><li>App_Data  </li></ul><ul><ul><li>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 </li></ul></ul>
  7. 7. Directory structure <ul><li>App_LocalResources  </li></ul><ul><ul><li>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. </li></ul></ul><ul><li>App_GlobalResources  </li></ul><ul><ul><li>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. </li></ul></ul>
  8. 8. Directory structure <ul><li>App_Themes  </li></ul><ul><ul><li>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. </li></ul></ul><ul><li>App_WebReferences  </li></ul><ul><ul><li>holds discovery files and WSDL files for references to Web services to be consumed in the site. </li></ul></ul><ul><li>Bin  </li></ul><ul><ul><li>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. </li></ul></ul>
  9. 9. Directives <ul><li>@ Page Directive. </li></ul><ul><li>@ Master Directives. </li></ul><ul><li>@ Control Directives. </li></ul><ul><li>@ Import Directives. </li></ul><ul><li>@ Implements Directives. </li></ul><ul><li>@ Register Directives. </li></ul><ul><li>@ Assembly Directives. </li></ul><ul><li>@ Previous Page Type. </li></ul><ul><li>@ Reference Type. </li></ul><ul><li>@ OutputCache Type. </li></ul>
  10. 10. .NET FEATURES <ul><li>Easy Programming Model. </li></ul><ul><li>Flexible Language Option. </li></ul><ul><li>Great Tool Support. </li></ul><ul><li>Rich Class FrameWork. </li></ul><ul><li>Enahance Reliability </li></ul><ul><li>Easy Deployment </li></ul><ul><li>Dynamic Update of running Applications </li></ul>
  11. 11. Difference between Asp and Asp.Net <ul><li>ASP.NET </li></ul><ul><li>ASP.Net web forms have a code behind file which contains all event handling code. </li></ul><ul><li>ASP.Net web forms inherit the class written in code behind. </li></ul><ul><li>ASP.Net web forms use full fledged programming language. </li></ul><ul><li>ASP.Net web applications are configurable (web.config) </li></ul><ul><li>ASP.Net webforms can use custom controls through the @ register directive </li></ul><ul><li>ASP.Net web forms have ADO.Net which supports XML integration and integration of data from two or more data sources </li></ul>
  12. 12. Difference between Asp and Asp.Net <ul><li>ASP </li></ul><ul><li>ASP does not have such facility to separate programming logic from design. </li></ul><ul><li>ASP does not have the concept of inheritance. </li></ul><ul><li>ASP pages use scripting language. </li></ul><ul><li>ASP applications are not. </li></ul><ul><li>It is not available with ASP. </li></ul><ul><li>while ASP has ADO which is a simple COM object with limited facilities. </li></ul>
  13. 13. .NET Framework
  14. 14. .NET Framework <ul><li>.NET Framework consists of 3 main parts: </li></ul><ul><ul><li>Common Language Runtime </li></ul></ul><ul><ul><li>Framework Classes/Libraries </li></ul></ul><ul><ul><li>ASP.NET </li></ul></ul>
  15. 15. 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
  16. 16. Common Language Runtime (CLR) <ul><li>A common runtime for all .NET languages </li></ul><ul><ul><li>Common type system </li></ul></ul><ul><ul><li>Common metadata </li></ul></ul><ul><ul><li>Intermediate Language (IL) to native code compilers </li></ul></ul><ul><ul><li>Code execution and security </li></ul></ul><ul><li>Over 15 languages supported today </li></ul><ul><ul><li>C#, VB, Jscript, Visual C++ from Microsoft </li></ul></ul><ul><ul><li>Perl, Python, Smalltalk, Cobol, Haskell, Mercury, Eiffel, Oberon, Oz, Pascal, APL, CAML, Scheme, etc. </li></ul></ul>
  17. 17. Common Language Runtime (CLR) <ul><li>Enables cross-language interoperability </li></ul><ul><ul><li>Common Language Specification describes interoperability requirements </li></ul></ul><ul><li>Language/Hardware/OS Independent </li></ul><ul><ul><li>Compact framework for small devices </li></ul></ul><ul><li>Industrial strength Garbage collector </li></ul><ul><ul><li>Designed for multi-processor servers </li></ul></ul>
  18. 18. 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
  19. 19. .NET Framework Libraries <ul><li>Single consistent set of object oriented class libraries to enable building distributed web applications (Unified Classes) </li></ul><ul><li>Built using classes arranged across logical hierarchical namespaces </li></ul><ul><ul><li>For example: System.Data.SQL </li></ul></ul><ul><li>Work with all CLR languages. </li></ul>
  20. 20. Common Type System <ul><li>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. </li></ul>
  21. 21. Functions of CTS <ul><li>Cross Language Integration. </li></ul><ul><li>Object Oriented model that support many programming language. </li></ul><ul><li>It allow object written in different language interact with each other. </li></ul><ul><li>CTS define rules that allow datatypes </li></ul><ul><li>and object in diff. language interact with each other. </li></ul>
  22. 22. Common Type System <ul><li>Type Category:- </li></ul><ul><ul><li>Value Type. </li></ul></ul><ul><ul><li>Reference Type </li></ul></ul>
  23. 23. Common Type System <ul><li>Boxing </li></ul><ul><li>Converting Value type to Reference type is Known as Boxing. </li></ul><ul><li>UnBoxing </li></ul><ul><li>Converting Reference type to Value type is known as Unboxing. </li></ul>
  24. 24. .NET Framework Libraries
  25. 25. ASP.NET <ul><li>ASP.NET is a new programming framework designed to make web apps easier to: </li></ul><ul><ul><li>Build, Deploy, Run </li></ul></ul><ul><li>Radical advancement of today’s ASP </li></ul><ul><ul><li>Broader programming language support </li></ul></ul><ul><ul><ul><li>Visual Basic.NET, Jscript.NET, C# </li></ul></ul></ul><ul><ul><li>Easier page programming model </li></ul></ul><ul><ul><ul><li>Namespaces </li></ul></ul></ul><ul><ul><li>Excellent Visual Studio designer support </li></ul></ul>
  26. 26. ASP.NET <ul><li>ASP.NET is compiled, not interpreted </li></ul><ul><ul><li>Better performance </li></ul></ul><ul><ul><li>strong typing, JIT compiling to native code </li></ul></ul><ul><li>Configuration settings in XML-based files </li></ul><ul><li>Session state can now be shared across a web form of ASP.NET server </li></ul><ul><li>ASP.NET detects and recovers from problems </li></ul><ul><ul><li>Access violations, memory leaks, deadlocks </li></ul></ul>

×