易截截图软件、单文件、免安装、纯绿色、仅160KB

ASP无组件上传文件的问题!~急!~

<%
dim upload,file,formName,formPath,filename,fileExt
dim ranNum
call UpFile()
'===========无组件上传(upload_0)====================
sub UpFile()
set upload=new UpFile_Class '建立上传对象
upload.GetData (1024*1024*5) '取得上传数据,此处即为5M

if upload.err > 0 then
select case upload.err
case 1
Response.Write "请先选择您要上传的文件 [ <a href=# onclick=history.go(-1)>请重新上传 </a> ]"
case 2
Response.Write "文件大小超过了限制5M [ <a href=# onclick=history.go(-1)>请重新上传 </a> ]"
end select
exit sub
else
formPath=upload.form("filepath") '文件保存目录,此目录必须为程序可读写
if formPath="" then
formPath="../UploadFile/"
end if
'在目录后加(/)
if right(formPath,1) <>"/" then
formPath=formPath&"/"
end if
for each formName in upload.file '列出所有上传了的文件
set file=upload.file(formName) '生成一个文件对象
if file.filesize <100 then
response.write "请先选择您要上传的文件! [ <a href=# onclick=history.go(-1)>请重新上传 </a> ]"
response.end
end if

fileExt=lcase(file.FileExt)
if CheckFileExt(fileEXT)=false then
response.write "文件格式不正确,[ <a href=# onclick=hi


相关问答:

一段asp转php

<%if request.QueryString("start") <>"" then%>
<%if cint(start)>0 then%>
<a href="search.asp?q= <%=q%>&start= <%if request.Query ......

asp有没有什么比较好的chat组件? - Web 开发 / ASP

owc11满足不了要求,有没有更好点的,asp能调用的
目前没发现,帮你顶!

应该没有了吧

自已写。顶

帮顶,关注!

好像就这个了,目前还没看到其他得上市使用。。。帮顶!

自己再顶一下

好像是没有 ......

ASP如何读取word文件,显示在页面上 - Web 开发 / ASP

不是直接打开,而是读取内容,然后可以操作的数据,可以存储到数据库或者显示在页面上。
word文件在服务器端。

可以考虑用第三方组件
http://officewriter.softartisans.com/officewriter-372.aspx

有中文说 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号