問題1:listbox下拉列表中的項目怎么從TXT文件中讀取??格式怎么樣的<scriptlanguage="vb"runat="server">subchoose(senderasobject,easeventargs)ear()dimdataasstring()={"px","px","px"","px"","px"","px"}list.datasource=datalist.databind()endsub</script><html><body><formrunat="server"><asp:dropdownlistrunat="server"id="list"/><asp:imagebuttonrunat="server"onclick="choose"/></form></body></html>我是這么加入項目的不過現(xiàn)在要求是從TXT文件中 不知道啥格式啊,假如我有個TXT文件是放在C:\inetpub\1.txt的,改怎么寫,TXT文件里該怎么寫?問題2:我在選擇了下拉列表中第幾項后,要打開新個窗口顯示Dim Script As String Script = "<Script Language='JavaScript'>"Script+="window.open(' ','_blank','Menubar=No,Width=800,Height=400')<" Script += "/Script>" RegisterClientScriptBlock("clientScript", Script)http://localhost/ 這個目錄是固定的 里面有很多類似 px這樣的文件 我想先定義個string變量然后用select case 根據(jù)選擇了第幾項就決定要打開的文件名稱 然后就用這一段打開這些文件名 該怎么寫啊? 上面這段是用網(wǎng)頁瀏覽器打開文件,如果我想用 這個程序打開可以嗎?