使用Visual Studio建立一個.aspx文件(Web Forms),例如hovertree.aspx,在頁面上加入一個ListBox代碼如下:
<asp:ListBox runat="server" ID="lbKeleyiFolder" />
那么在頁面上顯示根目錄子文件夾的代碼如下:
string[] m_subKeleyiFolder = Directory.GetDirectories(Server.MapPath("/hvtimg//"));int m_countHovertree = m_subKeleyiFolder.Length;for (int i = 0; i < m_countHovertree; i++){m_subKeleyiFolder[i] = m_subKeleyiFolder[i].Substring(m_subKeleyiFolder[i].LastIndexOf("http://") + 1);}lbKeleyiFolder.DataSource = m_subKeleyiFolder;lbKeleyiFolder.DataBind();HoverTree系統源碼下載:http://hovertree.codeplex.com/
http://m.survivalescaperooms.com/sosoft/p/kaifajishu.html
新聞熱點
疑難解答