asp if语句问题 [英] asp if statement problem
问题描述
可以请一些人了解我的代码有什么问题 - 我选择3条记录,如果ID = 11则只想显示Flight_Route。我认为问题是IF objRSLGWMANGLAYVR(ID)= 11然后,我认为这是有效的代码,但我现在还不确定
以下代码应该将红色div中的MANCHESTER输出到VANCOUVER [因为这是sql表上的内容]而是什么也没做。没有错误。
我认为问题是IF objRSLGWMANGLAYVR(ID)= 11然后我认为是有效代码
有效代码是,但是当一个常见错误时学习展开 | 选择 | 换行 | 行号
< blockquote> hi code green - 你介意请解释IF objRSLGWMANGLAYVR(" ID")= 11 THEN和IF objRSLGWMANGLAYVR(" ID")== 11 ??之间的区别
我试过IF objRSLGWMANGLAYVR(" ID")== 11我在双等号上得到语法错误...
道歉。
我没注意到它是VB。
''==''错了。
我会的再看看。
can some one please shed some light on what is wrong with my code - im selecting 3 records and simply want to display the Flight_Route if the ID = 11. I believe the problem is IF objRSLGWMANGLAYVR("ID") = 11 THEN which I believe to be valid code but im not sure now
the following code should output MANCHESTER to VANCOUVER [as this is what is on the sql table] inside a red div but instead does nothing. no errors either.
Expand|Select|Wrap|Line Numbers解决方案I believe the problem is IF objRSLGWMANGLAYVR("ID") = 11 THEN which I believe to be valid codeValid code yes but a common mistake when learning
Expand|Select|Wrap|Line Numbers
hi code green - do you mind please explaining the difference between IF objRSLGWMANGLAYVR("ID") = 11 THEN and IF objRSLGWMANGLAYVR("ID") == 11 ??
I''ve tried IF objRSLGWMANGLAYVR("ID") == 11 and im getting a syntax error on the double equals mark...
Apologies.
I didn''t notice it was VB.
''=='' is wrong.
I will have another look.
这篇关于asp if语句问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文登录 关闭
扫码关注1秒登录发送“验证码”获取 | 15天全站免登陆