Vous êtes sur la page 1sur 21

Hajer ALAYA

Hajer_Alaya@yahoo.fr









Introduction la plateforme .net


Prsentation de Visual Studio 2010
Le Langage VB.net
Le Langage C#
Le langage Asp.net
L ADO.net
Dveloppement des applications .net

La plate-forme Microsoft .NET repose principalement sur :

Modle
de dveloppement

Infrastructure
pour les Applications
distribues

Outils de
Dveloppement

VB

C++

C#

JScript

Common Language Specification


ASP.NET: Web Services
and Web Forms

Windows
Forms

ADO.NET: Data and XML


.NET Framework Base Classes
Common Language Runtime

Visual Studio.NET

Un ensemble de technologies
pour dvelopper et utiliser des
composants :
Formulaires Web
Services Web
Applications Windows
Des outils pour dvelopper des
applications
Dveloppement
Mise au point
Dploiement
Maintenance

CLR : But !


Dveloppement de services
Permettre une interoprabilit entre les langages
Augmenter la productivit (chacun crit dans le langage quil
matrise, le plus adapt, )

Services dploiement
Simple, sr
Gestion des versions NO MORE DLL HELL

Services lexcution

Performance
Extensibilit
Sret et disponibilit
Scurit

CLR : Fonctionnement

Source Code

Assembly

Compilateur
C++, C#, VB or any
.NET language

Rf

csc.exe or vbc.exe

DLL or EXE

System.Windows.Forms

System.Web
Services
Description
Discovery
Protocols

UI
HtmlControls
WebControls

Caching
Configuration

Security
SessionState

Design

ComponentModel

System.Drawing
Drawing2D
Imaging

System.Xml

System.Data
ADO
Design

Printing
Text

XSLT
XPath

SQL
SQLTypes

Serialization

System
Collections
Configuration
Diagnostics
Globalization
9

Rf

IO
Net
Reflection
Resources

Security
ServiceProcess
Text
Threading

Runtime
InteropServices
Remoting
Serialization

Developers
DEVELOPPEMENT
public static void Main(String[] args )
{ String usr; FileStream f; StreamWriter w;
try {
usr=Environment.GetEnvironmentVariable("USERNAME");
f=new FileStream(C:\\test.txt",FileMode.Create);
w=new StreamWriter(f);
public static void Main(String[] args )
w.WriteLine(usr);
{ String usr; FileStream f; StreamWriter w;
w.Close();
try {
} catch (Exceptionusr=Environment.GetEnvironmentVariable("USERNAME");
e){
Console.WriteLine("Exception:"+e.ToString());
f=new FileStream(C:\\test.txt",FileMode.Create);
}
w=new StreamWriter(f);
}
w.WriteLine(usr);
w.Close();
} catch (Exception e){
Console.WriteLine("Exception:"+e.ToString());
}
}

Source code

10

Compiler
C#
J#
VB
Cobol

Assembly
MSIL
Metadata
Resources

11

12

13

14

Atelier 0 : Installation de Visual Studio 2010

15

VISUAL BASIC
(VB)
 BASIC  Driv du langage basic (Beginner's All purpose Symbolic
Instruction Code) des annes 60
 VISUAL Dessin et aperu de linterface avant lexcution


16

volution de VB avec Windows


 1990 windows 3.0  Visual basic 1.0
 1992 windows 3.1  Visual Basic 2.0
 1993 windows 3.11  Visual Basic 3.0
 1995 windows 95  Visual Basic 4.0
 1998 windows 98  Visual Basic 5.0 puis 6.0
 2002 windows XP  Visual Basic .net

 2015 windows 8 -> Visual Basic .net 10









Nouveau langage cr pour .NET


Hrite de C++ (Espace de nom:Namespace, pointeur:
unsagecode, unsigned types)
Ressemble Java
Concepts cls :
Composants orients
Tout est objet
Utilise les classes du framework .NET
Exemple: Hello World
using System;
class HelloWorld {
static void Main( ) {
Console.WriteLine("Hello world");
Console.ReadLine(); // Hit enter to finish
}
}
csc HelloWorld.cs

17

Quest ce quASP.NET ?



Version .NET dASP : utilis pour la cration de site Web dynamique


3 types de pages : APSx, ASMx (assembly) pour les Web services, ASCx
(control) pour les contrles utilisateurs.

Les contrles serveurs




45 contrles disponibles (Listbox, treeview, calendar, adrotator, )

Excuts sur le serveur.

Renvoie du code HMTL au client en fonction du navigateur utilis


(compatible HMTL 3.2).

18

19

Console Application

Class Library

Windows Forms Application

ASP.NET Web Application

20

Rf :
http://www.3ie.fr/nouvelles_technologies/fiche/fiche_NET
.htm
http://www.gotdotnet.com
http://www.dotnetguru.org
http://www.dotnet-fr.org/
http://msdn.microsoft.com/netframework/
http://www.microsoft.com/net/
http://msdn.microsoft.com/net/

21

Vous aimerez peut-être aussi