%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Foto.aspx.vb" %> <%@ Import Namespace="System.Io" %>
FOTO <% Dim i = 0 Dim directory As New DirectoryInfo(Server.MapPath("") & "/Foto") Dim directories As DirectoryInfo() = directory.GetDirectories() Dim folder For Each folder In directories i = i + 1 If (i Mod 2) <> 0 Then %><%=folder.ToString %><% Else %><%=folder.ToString %><% End If Next %>