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 - << C# VERSION >>


How to use GetDirectoryes


<%@ Page language="VB" %>
<%@ Import Namespace="System.IO" %>
<script language="VB" runat="server">
Sub Page_Load(Source as Object, E as EventArgs)
  Dim subdir As String() = Directory.GetDirectories(Server.MapPath("\"))
  Dim subdirectory As String
  For Each subdirectory In subdir
    myDirectories.text += subdirectory & "<br>"
  Next subdirectory
end sub
</script>
<body>
<asp:label id="myDirectories" runat="server" />
</body>
</html>



Download Code...


Print Page


 








Page top

risorse per webmaster