help me to debug

选择本地文件<input id="loFile" type="file" runat="server" />
打算上载

编译通过,开始页面正常,但执行“上传”按钮 脚本函数时

未将对象引用设置到对象的实例。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.NullReferenceException: 未将对象引用设置到对象的实例。

源错误:

行 14: lstrFolder = "c:\"
行 15: end if
行 16: lstrName = loFile.PostedFile.FileName

行 16出错

为什么?如何更改。

[445 byte] By [cordiandavii-恪典] at [2008-4-24]
# 1
if myFile.PostedFile <> null then
''处理上传的文件
end if
# 2
dim f as httppostfile

f=request.files(0)

dim temp as string

temp=f.filename
buaawjh-猪猪爱咬咬 at 2007-10-1 > top of Msdn China Tech,.NET技术,ASP.NET...