ASP.NET Développement Rapide DApplications Web Avec.NET.

50
ASP.NET ASP.NET Développement Rapide Développement Rapide D’Applications Web D’Applications Web Avec .NET Avec .NET

Transcript of ASP.NET Développement Rapide DApplications Web Avec.NET.

Page 1: ASP.NET Développement Rapide DApplications Web Avec.NET.

ASP.NETASP.NET

Développement RapideDéveloppement RapideD’Applications WebD’Applications WebAvec .NETAvec .NET

Page 2: ASP.NET Développement Rapide DApplications Web Avec.NET.

RappelRappel

Serveur Web Puissant et ExtensibleConfig. XMLDéploiement xcopySécurité (Passport, NT, Custom…)Extensibilité

Applications Web : Web FormsAvec n’importe quel langage .NETPrésentation (HTML) et code (VB, C# …) séparésTraitements des événements client sur le serveurGestion d’état automatiqueContrôles riches (databinding, adaptation au browser…), extensiblesFonctions de contrôle déclarativesPages compilées et non plus interprétéesFonctions de cache avancéesGestion d’état souple

Support de Visual studioWeb Form designer, IntelliSense pour HTML, XML

Page 3: ASP.NET Développement Rapide DApplications Web Avec.NET.

ASP.NET, en somme…ASP.NET, en somme…

Avancées technologiques majeuresDéveloppement :

Contrôles graphiques générant le HTML (flux aspx)

Programmation événementielle pour le Web

Choix du langage de développement

Simplicité de création des services Web XML

Exécution :

Code compilé

Gestion avancée du cache en sortie

Déploiement par simple copie

Gestion erreurs, sécurité, intégrés à la plate-forme

Page 4: ASP.NET Développement Rapide DApplications Web Avec.NET.

Agenda

Développement Web : ASP.NETLa plateforme ASP.NET

ASP.NET WebMatrix, MSDE, Cassini

Les Starter KitsCommunity, Portal, Commerce, Reports, Time TrackerFonctionnalitésPré-requis et Installation

Revue de détailsPortal

Et après ?

Page 5: ASP.NET Développement Rapide DApplications Web Avec.NET.

Visual Visual Studio .NETStudio .NET

ASP.NET ASP.NET WebMatrixWebMatrix

IDEIDE

SQL ServerSQL Server MSDEMSDEDonnéesDonnées

IISIIS ““Cassini”Cassini”Serveur WebServeur Web

Développement Développement en entrepriseen entreprise

Environnement Environnement “light”“light”

Windows & .NET Windows & .NET FrameworkFrameworkWindows & .NET FrameworkWindows & .NET Framework

Deux scénarios possiblesDeux scénarios possibles

Plate-FormePlate-Forme

Page 6: ASP.NET Développement Rapide DApplications Web Avec.NET.

ASP.NET WebMatrix 0.6ASP.NET WebMatrix 0.6

Un outil de développement léger,

facile à prendre en main,pensé pour les communautés

de développeurs,pour le développement

d’applications WebASP.NET

GRATUIT

ASP.NET ASP.NET WebMatrixWebMatrix

MSDEMSDE

““Cassini”Cassini”

Environnement Environnement “light”“light”

Page 7: ASP.NET Développement Rapide DApplications Web Avec.NET.

Un outil de développement légerUn outil de développement léger

Simple et facile à utiliserBasé sur des fichiers (pas de “projets”)

Web Form designer WYSIWYG

Designer de données intégré

Outils et assistants orientés tâches

Support FTP pour l’hébergement des pages

Code Builders (assistants de génération de code)

Partage de “Code Snippets”

Adapté aux développement de site personnel, ou maquette rapide

ASP.NET ASP.NET WebMatrixWebMatrix

MSDEMSDE

““Cassini”Cassini”

Environnement Environnement “light”“light”

Page 8: ASP.NET Développement Rapide DApplications Web Avec.NET.

LégerTéléchargement rapide (~1,3 Mo)

1 disquette Pas de notion de projet

entièrement basé sur des fichiers

Serveur Web intégré

tourne sur Windows XP Home !

Destiné aux CommunautésAdd-in / Galleries de Code

Intégration client Instant Messaging

Intégration d’un client Chat

Onglet de liens vers les communautés en ligne

ASP.NET ASP.NET WebMatrixWebMatrix

MSDEMSDE

““Cassini”Cassini”

Environnement Environnement “light”“light”

Un outil de développement légerUn outil de développement léger

Page 9: ASP.NET Développement Rapide DApplications Web Avec.NET.

MSDE 2000MSDE 2000

Microsoft SQL Server Desktop Engine 2000Le moteur de SQL Server 2000Pas d’interface d’administration

WebMatrix joue ce rôle

Performances bridéesLimité à 5 utilisateurs simultanésLimité à 2GoLimite donc de fait l’usage au développement ou au déploiement sur poste client

ASP.NET ASP.NET WebMatrixWebMatrix

MSDEMSDE

““Cassini”Cassini”

Environnement Environnement “light”“light”

Page 10: ASP.NET Développement Rapide DApplications Web Avec.NET.

CassiniCassini

Serveur Web de développementNe sert que les pages ASP.NET Ne sert que les requêtes locales Est inclus dans les 1,2Mo de WebMatrixN’est en fait qu’un listener qui renvoie les requêtes vers le moteur ASP.NET du .NET Framework

ASP.NET ASP.NET WebMatrixWebMatrix

MSDEMSDE

““Cassini”Cassini”

Environnement Environnement “light”“light”

Page 11: ASP.NET Développement Rapide DApplications Web Avec.NET.

Visual Visual Studio .NETStudio .NET

ASP.NET ASP.NET WebMatrixWebMatrix

IDEIDE

SQL ServerSQL Server MSDEMSDEDonnéesDonnées

IISIIS ““Cassini”Cassini”Serveur WebServeur Web

ASP.NET Starter KitsASP.NET Starter Kits

Développement Développement en entrepriseen entreprise

Environnement Environnement “light”“light”

Windows & .NET Windows & .NET FrameworkFrameworkWindows & .NET FrameworkWindows & .NET Framework

Un accélérateur de projetsUn accélérateur de projets

Plate-FormePlate-Forme

Page 12: ASP.NET Développement Rapide DApplications Web Avec.NET.

ASP.NET Starter KitsASP.NET Starter Kits

Exemples d’applications démontrant comment créer des applications Internet/Intranet exploitant la puissance d’ASP.NETTrois niveaux d’utilisation

Installation, configuration et mise en ligneInstallation, développement spécifique avant mise en ligneDéveloppement d’une solution reprenant uniquement quelques éléments du code source d’un Starter Kit

Version 1.0 supporte le Framework 1.1

Page 13: ASP.NET Développement Rapide DApplications Web Avec.NET.

Licence des ASP.NET Starter KitsLicence des ASP.NET Starter Kits

Les Starter Kits sont gratuits !Shared SourceLe code source des Starter Kits est fourni

En C#, VB, J#(beta)En projet Visual Studio .NET et en fichiers pour le SDK ou WebMatrix

Il est librement modifiable et redistribuablePossibilité de dérive vers une version commercialeIl faut juste transmettre le fichier de licence initial au fil des modifications

Page 14: ASP.NET Développement Rapide DApplications Web Avec.NET.

Cinq ASP.NET Starter KitsCinq ASP.NET Starter Kits

Cinq templates d’applicationsCommunity

Portal (IBuySpy Portal)

Commerce (IBuySpy Commerce)

Reports

Time Tracker

Page 15: ASP.NET Développement Rapide DApplications Web Avec.NET.

Création de projets

Création/suivi de tâchesSuivi des tâches effectuées

Suivi du temps passé sur chacune

Création de rapports personnalisésSuivi de l’avancement global

Suivi du temps passé dans chaque section

TimeTracker Starter KitTimeTracker Starter KitExemple de développement simple en ASP.NETExemple de développement simple en ASP.NET

Page 16: ASP.NET Développement Rapide DApplications Web Avec.NET.

Architecture 3-tiersBase - SQLHelper http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/daab-rm.asp

ExecuteDataSet (Select *)ExecuteNonQuery (insert, update, delete)ExecuteScalar (Select count(*))

Business Logic Layer…BarGraph…

PrésentationWeb ASP.netMobile ASP.net (MobileControls)

Time Tracker Architecture

Page 17: ASP.NET Développement Rapide DApplications Web Avec.NET.

Time Tracker Starter Kit

demodemo

Page 18: ASP.NET Développement Rapide DApplications Web Avec.NET.

Générez de nombreux typesde rapports

Création de tout type de graphique

Tri par colonne

Rapports modifiables

Gestion des changements de page pour l’impression

Gestion des totaux et sous totaux

Reports Starter Kit Reports Starter Kit Réutilisez ces rapports dans vos applications WebRéutilisez ces rapports dans vos applications Web

Page 19: ASP.NET Développement Rapide DApplications Web Avec.NET.

Reports Starter Kit Reports Starter Kit Exemple de développement simple en ASP.NETExemple de développement simple en ASP.NET

Graphique DynamiqueChangement de l’entête http

Response.ContentType = "image/png";

Création de l’objet BarGraphBitmap bmp;

MemoryStream memStream = new MemoryStream();

BarGraph bar = new BarGraph(Color.White);

Peupler le BarGraphbar.CollectDataPoints(xValues.Split("|".ToCharArray()),

yValues.Split("|".ToCharArray()));

bmp = bar.Draw();

Sauvegarde et envoi dans le flux bmp.Save(memStream, ImageFormat.Png);

memStream.WriteTo(Response.OutputStream);

Page 20: ASP.NET Développement Rapide DApplications Web Avec.NET.

Reports Starter Kit

demodemo

Page 21: ASP.NET Développement Rapide DApplications Web Avec.NET.

Catalogue de produitsDescription, photo et critiquedes produitsRecherche par nom de produitou de catégorieFonctionnalités comme “ont aussiacheté’ ou “articles les plus demandés”

Commande instantanée par service WebToute application peut passer commande en utilisant le service Web XML

Autres fonctionnalitésPanier d’achatComptes visiteurs

Commerce Starter Kit Commerce Starter Kit (IBuySpy Store)(IBuySpy Store)Partez d’une base solide pour créer votre site B2CPartez d’une base solide pour créer votre site B2C

Page 22: ASP.NET Développement Rapide DApplications Web Avec.NET.

Commerce Starter Kit

demodemo

Page 23: ASP.NET Développement Rapide DApplications Web Avec.NET.

Communities Starter KitCommunities Starter KitCréez votre site communautaire sans développerCréez votre site communautaire sans développer

Publication de contenuPost d’actualités et commentaires

Album photos

Système de “rating”

InteractifSondages

Publication de contenu sous forme de services Web XML

Intégration de news d’autres sites au format RSS

Autres fonctionnalitésGestion des utilisateurs et des rôles

Gestion de skins pour modifier l’apparence d’un site

Page 24: ASP.NET Développement Rapide DApplications Web Avec.NET.

Utilisation

Administration online

Communities Starter KitCommunities Starter KitCréez votre site communautaire sans développerCréez votre site communautaire sans développer

Page 25: ASP.NET Développement Rapide DApplications Web Avec.NET.

Communities Starter Kits

demodemo

Page 26: ASP.NET Développement Rapide DApplications Web Avec.NET.

Portal Starter Kit Portal Starter Kit (IBuySpy)(IBuySpy)Partez d’une base solide pour créer votre portailPartez d’une base solide pour créer votre portail

10 modules pour les types decontenu les plus courantsUn framework simple à étendreavec des modules personnelsAdministration en ligne de la miseen page, du contenu et de la sécuritéMise en page configurée en XMLSécurité basée sur les rôles pour le visionnage du contenu, son édition et l’administration du portailGestion intégrale des périphériques mobiles avec le Mobile Internet Toolkit

Page 28: ASP.NET Développement Rapide DApplications Web Avec.NET.

Portal Starter Kit VB VB

demodemo

Installation du Starter Kit

Navigation

Administration

Installation d’un module de gestion de catalogue produits

Page 29: ASP.NET Développement Rapide DApplications Web Avec.NET.
Page 30: ASP.NET Développement Rapide DApplications Web Avec.NET.
Page 31: ASP.NET Développement Rapide DApplications Web Avec.NET.
Page 32: ASP.NET Développement Rapide DApplications Web Avec.NET.
Page 33: ASP.NET Développement Rapide DApplications Web Avec.NET.
Page 34: ASP.NET Développement Rapide DApplications Web Avec.NET.
Page 35: ASP.NET Développement Rapide DApplications Web Avec.NET.
Page 36: ASP.NET Développement Rapide DApplications Web Avec.NET.
Page 37: ASP.NET Développement Rapide DApplications Web Avec.NET.
Page 38: ASP.NET Développement Rapide DApplications Web Avec.NET.
Page 39: ASP.NET Développement Rapide DApplications Web Avec.NET.
Page 40: ASP.NET Développement Rapide DApplications Web Avec.NET.
Page 41: ASP.NET Développement Rapide DApplications Web Avec.NET.

Portal Starter Kit VB VB

demodemo

Installation du Starter Kit

Navigation

Administration

Installation d’un module de gestion de catalogue produits

Page 42: ASP.NET Développement Rapide DApplications Web Avec.NET.

Fonctionnalités ASP.NET exploitéesFonctionnalités ASP.NET exploitées

Feature Commerce Portal Time Tracker

Reports Community

Application Features

Secure Access X X X X X

Roles-Based Access Control X X X

Dynamically Generated UI X X

Shopping Cart X

Catalog X X

Portal X X

Discussion List X X

Custom Error Handling X X X X

Online Administration X X X

Online Content Editing X X X

Content Rating X X

Web Farmable X X X X X

B2B Order Entry and Status X

Pages

Cross-browser support X X X X X

Dynamic UI Creation X X

Server Controls X X X X X

User Controls X X X X X

Custom Controls X (mobile)

X

Mobile User Interface X X

Data

App Settings X X X X X

Stored Procedures X X X X X

Database Transactions X X

DataReaders X X X

DataSets X X X X X

Security

Forms-Based Cookie Authentication

X X X X

Windows NTLM Security X X

Roles Based Security X X X

Caching

Output Caching X X X

Page 43: ASP.NET Développement Rapide DApplications Web Avec.NET.

Feature Commerce Portal Time Tracker

Reports Community

Application Features

Secure Access X X X X X

Roles-Based Access Control X X X

Dynamically Generated UI X X

Shopping Cart X

Catalog X X

Portal X X

Discussion List X X

Custom Error Handling X X X X

Online Administration X X X

Online Content Editing X X X

Content Rating X X

Web Farmable X X X X X

B2B Order Entry and Status X

Pages

Cross-browser support X X X X X

Dynamic UI Creation X X

Server Controls X X X X X

User Controls X X X X X

Custom Controls X (mobile)

X

Mobile User Interface X X

Data

App Settings X X X X X

Stored Procedures X X X X X

Database Transactions X X

DataReaders X X X

DataSets X X X X X

Security

Forms-Based Cookie Authentication

X X X X

Windows NTLM Security X X

Roles Based Security X X X

Caching

Output Caching X X X

Feature Commerce Portal Time Tracker

Reports Community

Application Features

Secure Access X X X X X

Roles-Based Access Control X X X

Dynamically Generated UI X X

Shopping Cart X

Catalog X X

Portal X X

Discussion List X X

Custom Error Handling X X X X

Online Administration X X X

Online Content Editing X X X

Content Rating X X

Web Farmable X X X X X

B2B Order Entry and Status X

Pages

Cross-browser support X X X X X

Dynamic UI Creation X X

Server Controls X X X X X

User Controls X X X X X

Custom Controls X (mobile)

X

Mobile User Interface X X

Data

App Settings X X X X X

Stored Procedures X X X X X

Database Transactions X X

DataReaders X X X

DataSets X X X X X

Security

Forms-Based Cookie Authentication

X X X X

Windows NTLM Security X X

Roles Based Security X X X

Caching

Output Caching X X X

Feature Commerce Portal Time Tracker

Reports Community

Application Features

Secure Access X X X X X

Roles-Based Access Control X X X

Dynamically Generated UI X X

Shopping Cart X

Catalog X X

Portal X X

Discussion List X X

Custom Error Handling X X X X

Online Administration X X X

Online Content Editing X X X

Content Rating X X

Web Farmable X X X X X

B2B Order Entry and Status X

Pages

Cross-browser support X X X X X

Dynamic UI Creation X X

Server Controls X X X X X

User Controls X X X X X

Custom Controls X (mobile)

X

Mobile User Interface X X

Data

App Settings X X X X X

Stored Procedures X X X X X

Database Transactions X X

DataReaders X X X

DataSets X X X X X

Security

Forms-Based Cookie Authentication

X X X X

Windows NTLM Security X X

Roles Based Security X X X

Caching

Output Caching X X X

Fonctionnalités ASP.NET exploitéesFonctionnalités ASP.NET exploitées

Page 44: ASP.NET Développement Rapide DApplications Web Avec.NET.

Pré-requis

OS SupportésWindows 2000 Pro et ServerWindows XP Pro

(*)

Windows Server 2003

Composants additionnels.NET Framework (ou redist) 1.1

MSDE 2000

ASP.NET Web Matrix

Page 46: ASP.NET Développement Rapide DApplications Web Avec.NET.

RéférencesRéférences

Grands comptesPfizer - www.pfizer.frVVF Vacances - www.vvf-vacances.fr

PublicAgence Bibliographique de l'Enseignement Superieur - www.abes.fr Centre d’Information et de Documentation Jeunesse - www.cidj.fr

PMEAuberge-Restaurant - www.repos-des-chasseurs.com Vente d’instrumentation Avionique - www.delta-omega.com Icopref, institut de formation - www.icopref.com Progiciel lumière - www.integral-international.fr

Intégrateurs régionauxwww.bizzdev.comwww.ezos.com

Solutions à valeur ajoutéeEtouch Collectivités et Etouch Portail de @TS ConseilE-Intra.Net de Quartz Data

Page 47: ASP.NET Développement Rapide DApplications Web Avec.NET.

Ressources - téléchargement

ASP.NET Web Matrixhttp://www.asp.net/webmatrix/download.aspx?tabindex=4

MSDEhttp://www.asp.net/tools/redir.aspx?path=msde

.NET Framework 1.1http://msdn.microsoft.com/netframework/downloads/

howtoget.asp

ASP.NET Starter Kitshttp://www.asp.net/StarterKits/

Hosting ASP.NEThttp://france.webmatrixhosting.net

Page 49: ASP.NET Développement Rapide DApplications Web Avec.NET.

Ressources - support

Forums ASP.NET

Newsgroups

www.CommunityStarterKit.com

Page 50: ASP.NET Développement Rapide DApplications Web Avec.NET.

Questions ?Questions ?