dim HealthInsuranceName_str as string
if(HealthInsuranceName.Disabled=true) (**之前我已经关闭了Disabled=true 这里不好使 判断总是 false)
HealthInsuranceName_str ="NULL"
else
HealthInsuranceName_str=HealthInsuranceName.value
if(HealthInsuranceName_str=="")
HealthInsuranceName="NULL"
else
HealthInsuranceName=HealthInsuranceName.value
end if
end if
response.write(HealthInsuranceName) (**结果有值,我要的结果关闭了 就要NULL)
if(HealthInsuranceName.Disabled=true) (**之前我已经关闭了Disabled=true 这里不好使 判断总是 false)
HealthInsuranceName_str ="NULL"
else
HealthInsuranceName_str=HealthInsuranceName.value
if(HealthInsuranceName_str=="")
HealthInsuranceName="NULL"
else
HealthInsuranceName=HealthInsuranceName.value
end if
end if
response.write(HealthInsuranceName) (**结果有值,我要的结果关闭了 就要NULL)
判断是否相等应该用==吧
如果你这里的disabled是true没道理不好使阿2.if(HealthInsuranceName_str=="") 这个是什么?vb.net是一个=