Morpheusweb.it - Risorse per webmaster: script, ASP.NET, C#, Visual Basic .Net, tutorial, asp, javascript, css, php, html, java, ADO, VBScript, forms, frames, Active Server Pages, Dynamic HTML, database, gratis per webmaster e webdesigner

GetDirectoryes - << VB.NET VERSION >>


How to use GetDirectoryes


<%@ Page language="c#" %>
<%@ Import Namespace="System.IO" %>
<script language="C#" runat="server">
private void Page_Load(object sender, System.EventArgs e)
{
  string[] subdir = Directory.GetDirectories(Server.MapPath("\\"));
  string subdirectory;
  foreach (string subdirectory in subdir)
  {
    myDirectories.text += subdirectory + "<br>";
  }
}
</script>
<body>
<asp:label id="myDirectories" runat="server" />
</body>
</html>



Download Code...


Print Page


 


Page top

risorse per webmaster