<%@ Import Namespace="System.IO" %>
<script language="C#" runat="server">
void Page_Load(Object src,EventArgs E)
{
string path = @"c:\\inetpub\\wwwroot\\";
string[] dirs = Directory.GetDirectories(path);
for(int i = 0;i < dirs.Length;i++)
{
string[] name = (dirs[i]).Split('\\');
FolderList.Text += name[name.Length - 1] + "
";
}
}
</script>