我的代码中有一行notes = If(IsDBNull(notes),"","")
。当我尝试在本地主机上运行它时,
我在第 51 行收到错误消息:
说明:在编译服务此请求所需的资源期间发生错误。请查看以下特定错误详细信息并适当修改您的源代码。
Compiler Error Message: BC30201: Expression expected.
Source Error:
Line 49: End Try
Line 50:
**Line 51: notes = If(IsDBNull(notes),"","")**
Line 52: 'Context.Response.Output.Write("AAAA"+notes+"MMM")
Line 53: if notes.Trim().Equals("TIMEUP") then
Version Information: Microsoft .NET Framework Version:2.0.50727.5466; ASP.NET Version:2.0.50727.5459
但是,当将相同的代码移植到生产环境时,它运行时没有任何故障,知道为什么吗?