主题:如何将一个文件夹指定给一个数组
.vb文件是这样的:
dim dir as directory,fs as string(),i as integer
fs=dir.getfiles(server.mappath("tupian\"))
for i=0 to ubound(fs)
fs(i)=replace(fs(i),server.mappath("tupian\"),"")
next
dropdownlist.datasource=fs
dropdownlist.databind()
在aspx文件中这段代码应该怎样写才对,会的就帮个忙吧
dim dir as directory,fs as string(),i as integer
fs=dir.getfiles(server.mappath("tupian\"))
for i=0 to ubound(fs)
fs(i)=replace(fs(i),server.mappath("tupian\"),"")
next
dropdownlist.datasource=fs
dropdownlist.databind()
在aspx文件中这段代码应该怎样写才对,会的就帮个忙吧