注册 登录
编程论坛 ASP技术论坛

提问帖,望指教 后台添加图片广告提示无效使用 Null:

a860352567 发布于 2012-10-28 16:51, 577 次点击
无效使用 Null: 'intseparator'
\admin\uploadclass.asp, line 131
是什么问题 求解决

public function open()
open = 0
if m_error=-1 then
m_error=0
else
exit function
end if
dim lngrequestsize : lngrequestsize=request.totalbytes
if m_totalsize>0 and lngrequestsize>m_totalsize then
m_error=5
exit function
elseif lngrequestsize<1 then
m_error=4
exit function
end if


dim lngchunkbyte : lngchunkbyte = 102400
dim lngreadsize : lngreadsize = 0
m_binform.type = 1
m_binform.open()
do
m_binform.write request.binaryread(lngchunkbyte)
lngreadsize=lngreadsize+lngchunkbyte
if  lngreadsize >= lngrequestsize then exit do
loop
m_binform.position=0
dim binrequestdata : binrequestdata=m_binform.read()


dim bcrlf,strseparator,intseparator
bcrlf=chrb(13)&chrb(10)
intseparator=instrb(1,binrequestdata,bcrlf)-1
strseparator=leftb(binrequestdata,intseparator)  【【【【【这里是131行】】】】】


dim stritem,strinam,strftyp,strpuri,strfnam,strfext,lngfsiz
const strsplit="'"">"
dim strformitem,strfileitem,inttemp,strtemp
dim p_start : p_start=intseparator+2
dim p_end
do
2 回复
#2
a8603525672012-10-28 16:53
asp本地调试 出现的错误 弄好了好久了 大牛们 指点指点我把
#3
dzt00012012-10-29 10:41
intseparator的值= NULL
能引起intseparator = NULL 可能是 binrequestdata = null或者bcrlf = null


网上有人遇到同样的问题,怀疑是你下载的代码本来就有问题
1