asp连接数据库代码实例(10)

发布时间:2021-06-06

asp 连接数据库代码实例

end if

vfname = filename(now())

fname = vfname & "." & GetExtendName(file.FileName)

file.SaveAs Server.mappath(formPath&fname) ''保存文件

%>

<script>

parent.form.picurl.value+='upfile/softpic/<%=fname%>' //-上传路径

//parent.frmadd.dreamcontent.value+='[img]upload/<%=ufp%>[/img]'

location.replace('Upsoftpic.asp') //---返回文件

</script>

<%

'------文件名

end if

set file=nothing

set upload=nothing

function filename(fname)

fname = now()

fname = replace(fname,"-","")

fname = replace(fname," ","")

fname = replace(fname,":","")

fname = replace(fname,"PM","")

fname = replace(fname,"AM","")

fname = replace(fname,"上午","")

fname = replace(fname,"下午","")

filename=fname

end function

function GetExtendName(FileName)

dim ExtName

ExtName = LCase(FileName)

ExtName = right(ExtName,3)

ExtName = right(ExtName,3-Instr(ExtName,"."))

GetExtendName = ExtName

end function

end if

%>

<!-- 上传软件或者图片结束 -->

upload.asp

<SCRIPT RUNAT=SERVER LANGUAGE=VBSCRIPT>

dim Data_5xsoft

Class upload_5xsoft

dim objForm,objFile,Version

asp连接数据库代码实例(10).doc 将本文的Word文档下载到电脑

精彩图片

热门精选

大家正在看

× 游客快捷下载通道(下载后可以自由复制和排版)

限时特价:7 元/份 原价:20元

支付方式:

开通VIP包月会员 特价:29元/月

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:fanwen365 QQ:370150219