This topic has been archived. It cannot be replied.
-
工作学习 / IT技术讨论 / a problem in my ASPcode. Thanks.
-waokool(waokool);
2002-7-10
{726}
(#628626@0)
-
呵<script language="vbscript">
newusername=<%=session("newusername")%>
</script>
上面这段不用这么费劲的,这样
<script language="vbscript">
newusername=session("newusername")
</script>
或者简单的这样
<%
newusername=session("newusername")
%>
就可以了
-rootbear(啤酒);
2002-7-10
{284}
(#628731@0)
-
Thanks. I'll tell u what happens later, I need sleep now.Good Night.
-waokool(waokool);
2002-7-10
(#628766@0)
-
把读session的那句话换成 newusername=session("newusername") 试试
-booker(宇);
2002-7-10
(#628732@0)
-
你定义的newusername是VBscript里的变量,用的时候在ASP里用,当然不行了在服务器端,ASP和Script代码按顺序执行。但ASP是没办法读到Script的变量的。你可以把变量直接在ASP代码里定义,或者放到一个Hidden里去
-hugefox(长得象熊的狐狸);
2002-7-10
{127}
(#628881@0)
-
According to my knowledge,ASP is actually a mixture of vbscript and sql etc.So your explaination is not right. I have solve the problem with the advice from Rootbear abd Booker. Thank you all.
-waokool(waokool);
2002-7-10
(#629054@0)
-
ASP is mixture of vbscript and sql huh..?? The best joke I heard today.
-jeffrey815(Smartiecat);
2002-7-11
(#631015@0)
-
You are asoblutely right, though it is not my problem.
-jeffrey815(Smartiecat);
2002-7-11
(#631018@0)