<% @ Import Namespace=" System.IO " %> <html > <BODY > <SCRipT LANGUAGE = "VB" RUNAT = "SERVER" > Sub UploadFile_Clicked ( Sender as Object, e as EventArgs ) Dim lstrFileName as string Dim lstrFileNamePath as string Dim lstrFileFolder as string ' 如果上傳目錄為空,就使用" c:/ "作為缺省上傳目錄 ' 獲得上傳到服務器的目錄名稱 if dir.value <> "" then lstrFileFolder = dir.value else lstrFileFolder = "c:/" end if