会话(“通过”)=会话(“通过”)+ 1错误 [英] Session("passed") = Session("passed") + 1 error

查看:59
本文介绍了会话(“通过”)=会话(“通过”)+ 1错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我的代码符合以下一行:

会话(传递)= 1

但是下面是错误的错误行

以下表达式中的第二个会话(通过):

会话(通过)=会话(通过)+ 1

为什么?

谢谢

Dee。

会话(通过)=会话(通过)+ 1

会话(通过)=会话(通过)+ 1

解决方案

因为Session(传递)是一个字符串。

尝试转换为Int,然后向其添加1。


Juan T. Llibre

ASP.NET MVP
http:// asp。 net.do/foros/

Foros de ASP.NET en Espa?ol

Ven,y hablemos de ASP.NET ...

======================


" dee" < DEE @家>在消息中写道

新闻:uO ************* @ TK2MSFTNGP12.phx.gbl ...


我的代码符合以下行:
会话(传递)= 1
但是在
以下表达式中的第二个会话(传递)下放置了摇摆错误行:
会话(通过)=会话(通过)+ 1
为什么?
谢谢
Dee。

会话(通过) =会话(通过)+ 1

会话(通过)=会话(通过)+ 1



因为Session(传递)是一个字符串。

尝试转换为Int,然后向其添加1。


Juan T. Llibre

ASP.NET MVP
http://asp.net.do/foros/

Foros de ASP.NET en Espa?ol

Ven,y hablemos de ASP.NET ...

======================


dee < DEE @家>在消息中写道

新闻:uO ************* @ TK2MSFTNGP12.phx.gbl ...


我的代码符合以下行:
会话(传递)= 1
但是在
以下表达式中的第二个会话(传递)下放置了摇摆错误行:
会话(通过)=会话(通过)+ 1
为什么?
谢谢
Dee。

会话(通过) =会话(通过)+ 1

会话(通过)=会话(通过)+ 1



感谢Juan :)

" Juan T. Llibre" <无*********** @ nowhere.com>在消息中写道

新闻:%2 **************** @ tk2msftngp13.phx.gbl ...

因为会话(传递)是一个字符串。
尝试转换为Int,然后向其添加1。

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espa?ol
Ven,y hablemos de ASP.NET ......
====================== br />
dee < DEE @家>在消息中写道
新闻:uO ************* @ TK2MSFTNGP12.phx.gbl ...


我的代码符合以下条件line:
Session(传递)= 1
但是在
以下表达式的第二个Session(传递)下面放置了一个摇摆错误行:
Session(& ;传递")=会话("传递")+ 1
为什么?
谢谢
Dee。

会话(通过)=会话(" ;传递")+ 1

会话(传递)=会话(传递)+ 1



Hi
My code complies the following line:
Session("passed") = 1
but puts wiggly error line under the second Session("passed") in the
following expression:
Session("passed") = Session("passed") + 1
Why?
Thanks
Dee.
Session("passed") = Session("passed") + 1

Session("passed") = Session("passed") + 1

解决方案

Because Session("passed") is a string.
Try casting to Int, and then adding 1 to it.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espa?ol
Ven, y hablemos de ASP.NET...
======================

"dee" <dee@home> wrote in message
news:uO*************@TK2MSFTNGP12.phx.gbl...

Hi
My code complies the following line:
Session("passed") = 1
but puts wiggly error line under the second Session("passed") in the
following expression:
Session("passed") = Session("passed") + 1
Why?
Thanks
Dee.
Session("passed") = Session("passed") + 1

Session("passed") = Session("passed") + 1



Because Session("passed") is a string.
Try casting to Int, and then adding 1 to it.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espa?ol
Ven, y hablemos de ASP.NET...
======================

"dee" <dee@home> wrote in message
news:uO*************@TK2MSFTNGP12.phx.gbl...

Hi
My code complies the following line:
Session("passed") = 1
but puts wiggly error line under the second Session("passed") in the
following expression:
Session("passed") = Session("passed") + 1
Why?
Thanks
Dee.
Session("passed") = Session("passed") + 1

Session("passed") = Session("passed") + 1



Thanks Juan :)
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...

Because Session("passed") is a string.
Try casting to Int, and then adding 1 to it.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espa?ol
Ven, y hablemos de ASP.NET...
======================

"dee" <dee@home> wrote in message
news:uO*************@TK2MSFTNGP12.phx.gbl...

Hi
My code complies the following line:
Session("passed") = 1
but puts wiggly error line under the second Session("passed") in the
following expression:
Session("passed") = Session("passed") + 1
Why?
Thanks
Dee.
Session("passed") = Session("passed") + 1

Session("passed") = Session("passed") + 1




这篇关于会话(“通过”)=会话(“通过”)+ 1错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆