begin process at 2012 02 13 19:43:55
  Trouver un code source :
 
dans
 
Accueil > 

Code

 > 

ASP.Net

 > LISTER LES DOSSIERS D'UN RÉPERTOIRE

LISTER LES DOSSIERS D'UN RÉPERTOIRE


 Information sur la source

Note :
Aucune note
Catégorie :ASP.Net Source .NET ( DotNet ) Niveau :Débutant Date de création :30/05/2002 Date de mise à jour :30/05/2002 12:25:49 Vu :12 989

Auteur : Skyride

Ecrire un message privé
Commentaire sur cette source (1)
Ajouter un commentaire et/ou une note

 Description

Tout est dans le titre ;-)

Source

  • <%@ Import Namespace="System.IO" %>
  • <script language="VB" runat="server">
  • sub Page_Load(obj as object, e as eventargs)
  • dim dir as new DirectoryInfo(Server.MapPath("/testnet"))
  • DataGrid1.DataSource = dir.GetDirectories
  • DataGrid1.DataBind()
  • end sub
  • </script>
  • <html><body>
  • <b>Les dossiers</b><br>
  • <asp:DataGrid id="DataGrid1" runat="server"
  • width="100%"
  • Font-Name="Arial"
  • Font-Size="10pt"
  • AlternatingItemStyle-Backcolor="#cccccc"
  • AutogenerateColumns="true" />
  • </body></html>
<%@ Import Namespace="System.IO" %>
<script language="VB" runat="server">
   
   sub Page_Load(obj as object, e as eventargs)
      dim dir as new DirectoryInfo(Server.MapPath("/testnet"))

      DataGrid1.DataSource = dir.GetDirectories
      DataGrid1.DataBind()
      
   end sub

</script>

<html><body>
   <b>Les dossiers</b><br>
   <asp:DataGrid id="DataGrid1" runat="server" 
      width="100%"
      Font-Name="Arial" 
      Font-Size="10pt" 
      AlternatingItemStyle-Backcolor="#cccccc"
      AutogenerateColumns="true" />
</body></html>



 Sources du même auteur

COMPOSANT ASPMAIL PILOTÉ VIA SQL SERVER
Source .NET (Dotnet) LISTER LES FICHIERS D'UN RÉPERTOIRE
Source .NET (Dotnet) INFORMATIONS D'UN FICHIER
Source avec Zip Source .NET (Dotnet) GÉNÉRER UN DOCUMENT HTML À PARTIR DE DONNÉES CONTENUES DANS ...
Source avec Zip Source .NET (Dotnet) GESTION DES TRANSACTIONS

 Sources de la même categorie

Source avec Zip Source .NET (Dotnet) GUESTBOOK AVEC GRIDVIEW par DanMor498
Source avec Zip CHECKED DROPDOWNLIST par fredzool
Source avec Zip Source avec une capture Source .NET (Dotnet) GRIDVIEW WITH TREEVIEW AND CALLBACK par fredzool
Source avec Zip APPELLER UN WEBSERVICE DEPUIS JAVASCRIPT par fredzool
Source avec Zip Source .NET (Dotnet) MONEY TEXTBOX WITH EMBEDED JAVASCRIPT par fredzool

Commentaires et avis

Commentaire de fabrice69 le 11/09/2002 14:14:18 administrateur CS

On peut aussi avoir la liste des fichiers dans le répertoire de la même facon en mettant :

DataGrid1.DataSource = dir.GetFiles

F___

 Ajouter un commentaire




Nos sponsors


Sondage...

Comparez les prix

CalendriCode

Février 2012
LMMJVSD
  12345
6789101112
13141516171819
20212223242526
272829    

Consulter la suite du CalendriCode

Photothèque

 
Développement réalisé par Nicolas SOREL (Nix) avec l'aide de : Cyril DURAND et Emmanuel (EBArtSoft), Merci à Vincent pour ses précieux conseils.
CodeS-SourceS.com© Toute reproduction même partielle est interdite sauf accord écrit du Webmaster
CodeS-SourceS.com© est une marque déposée tous droits réservés

Google Coop CodeS-SourceS Google Coop CodeS-SourceS
Temps d'éxécution de la page : 0,702 sec (4)

Nous contacter | Annoncer sur CodeS-SourceS | Mentions légales