26
Introduction to Visual Studio.NET Indra Phulwani MCA Lecturer

Visual studio

Embed Size (px)

DESCRIPTION

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

Citation preview

Page 1: Visual studio

Introduction to Visual Studio.NET

Indra PhulwaniMCA Lecturer

Page 2: Visual studio

Agenda

What is .NET?.NET FrameworkVisual Studio.NETC#Visual Basic.NETQ & A

Page 3: Visual studio

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.

Page 4: Visual studio

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 ExperienceA broader, more adaptive user experience, where information is delivered in a variety of ways on a variety of different devices.

.NET Device SoftwareEnables a new breed of smart Internet devices that can leverage Web Services

http://www.microsoft.com/business/vision/netvision.asp

Page 5: Visual studio

.NET Infrastructure and Tools

.NET Infrastructure and Tools.NET Enterprise Servers

SQL 2000Exchange 2000ISA 2000Host Integration Server 2000Application Center 2000BizTalk Server 2000Commerce Server 2000

.NET FrameworkWindows.NET

“Whistler” (Windows XP)

Page 6: Visual studio

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

Page 7: Visual studio

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.

Page 8: Visual studio

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.

Page 9: Visual studio

Directives

@ Page Directive.@ Master Directives.@ Control Directives.@ Import Directives.@ Implements Directives.@ Register Directives.@ Assembly Directives.@ Previous Page Type.@ Reference Type.@ OutputCache Type.

Page 10: Visual studio

.NET FEATURES

Easy Programming Model.Flexible Language Option.Great Tool Support.Rich Class FrameWork.Enahance ReliabilityEasy DeploymentDynamic Update of running Applications

Page 11: Visual studio

Difference between Asp and Asp.Net

ASP.NET

1. ASP.Net web forms have a code behind file which contains all event handling code.

2. ASP.Net web forms inherit the class written in code behind.

3. ASP.Net web forms use full fledged programming language.

4. ASP.Net web applications are configurable (web.config)

5. ASP.Net webforms can use custom controls through the @ register directive

6. ASP.Net web forms have ADO.Net which supports XML integration and integration of data from two or more data sources

Page 12: Visual studio

Difference between Asp and Asp.Net

ASP

1. ASP does not have such facility to separate programming logic from design.

2. ASP does not have the concept of inheritance. 3. ASP pages use scripting language. 4. ASP applications are not. 5. It is not available with ASP. 6. while ASP has ADO which is a simple COM

object with limited facilities.

Page 13: Visual studio

.NET Framework

Page 14: Visual studio

.NET Framework

.NET Framework consists of 3 main parts:

Common Language RuntimeFramework Classes/LibrariesASP.NET

Page 15: Visual studio

The .NET Framework

Base Class LibraryBase Class Library

Common Language SpecificationCommon Language Specification

Common Language RuntimeCommon Language Runtime

ADO.NET: Data and XMLADO.NET: Data and XML

VBVB C++C++ C#C#V

isual S

tud

io.N

ET

Visu

al Stu

dio

.NE

T

ASP.NET: Web ServicesASP.NET: Web Servicesand Web Formsand Web Forms

JScriptJScript ……

WindowsWindowsFormsForms

WindowsWindowsFormsForms

Page 16: Visual studio

Common Language Runtime (CLR)

A common runtime for all .NET languagesCommon type systemCommon metadataIntermediate Language (IL) to native code compilersCode execution and security

Over 15 languages supported todayC#, VB, Jscript, Visual C++ from MicrosoftPerl, Python, Smalltalk, Cobol, Haskell, Mercury, Eiffel, Oberon, Oz, Pascal, APL, CAML, Scheme, etc.

Page 17: Visual studio

Common Language Runtime (CLR)

Enables cross-language interoperabilityCommon Language Specification describes interoperability requirements

Language/Hardware/OS IndependentCompact framework for small devices

Industrial strength Garbage collectorDesigned for multi-processor servers

Page 18: Visual studio

CLR: Execution Model

VBVBSource Source codecode

CompilerCompiler

C++C++C#C#

CompilerCompilerCompilerCompiler

AssemblyAssemblyIL CodeIL Code

AssemblyAssemblyIL CodeIL Code

AssemblyAssemblyIL CodeIL Code

Operating System ServicesOperating System Services

Common Language RuntimeCommon Language Runtime

JIT CompilerJIT Compiler

Native CodeNative Code

ManagedManagedcodecode

UnmanagedUnmanagedComponentComponent

Page 19: Visual studio

.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.

Page 20: Visual studio

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.

Page 21: Visual studio

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.

Page 22: Visual studio

Common Type System

Type Category:-

Value Type.Reference Type

Page 23: Visual studio

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.

Page 24: Visual studio

.NET Framework Libraries

Unified Classes

Web Classes (ASP.NET)

XML Classes

System Classes

Drawing Classes

Windows FormsData (ADO.NET)

Controls, Caching, Security, Session, Configuration etc

Collections, Diagnostics, Globalization, IO, Security,Threading Serialization, Reflection, Messaging etc

ADO, SQL,Types etc

Drawing, Imaging, Text, etc

Design, Cmpnt Model etc

XSLT, Path, Serialization etc

Page 25: Visual studio

ASP.NET

ASP.NET is a new programming framework designed to make web apps easier to:

Build, Deploy, Run

Radical advancement of today’s ASPBroader programming language support

Visual Basic.NET, Jscript.NET, C#

Easier page programming modelNamespaces

Excellent Visual Studio designer support

Page 26: Visual studio

ASP.NET

ASP.NET is compiled, not interpretedBetter performancestrong typing, JIT compiling to native code

Configuration settings in XML-based filesSession state can now be shared across a web form of ASP.NET serverASP.NET detects and recovers from problems

Access violations, memory leaks, deadlocks