標題: 指定的引數超出有效值的範圍。參數名稱: index 請問該如何修改 [列印本頁] 作者: t2311y 時間: 2012-12-16 10:41:37 標題: 指定的引數超出有效值的範圍。參數名稱: index 請問該如何修改
本帖最後由 t2311y 於 2012-12-16 10:43 編輯
Protected Sub Button_list_dir_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button_list_dir.Click
Dim dir_current_path As String
Dim dir_current_root_path As String
Dim folder, folder_names(), sub_dir As DirectoryInfo
Dim File_Names(), sub_file As FileInfo
Dim file_name_url As String = ""
Dim row As TableRow
Dim cell_1, cell_2, cell_3, cell_4 As TableCell
Dim url As String = ""
Dim encode_url As String
dir_current_path = file_location & message_current_dir.Text
dir_current_root_path = Server.MapPath(dir_current_path)
folder = New DirectoryInfo(dir_current_root_path)
folder_names = folder.GetDirectories()
File_Names = folder.GetFiles()