登录 | 首页 -> 华新鲜事 -> 技术の宅 | 切换到:传统版 / sForum | 树形列表
如果我用Response.Redirect来做重定向。。
<<始页  [1]  末页>> 

如果我用Response.Redirect来做重定向。。后面的参数可以不可以是一个变量啊?


如果可以。。应该怎么写啊。。。

好像偶试不成功啊。。。


[iloveyouso (10-14 20:23, Long long ago)] [ 传统版 | sForum ][登录后回复]1楼

ASP[iloveyouso (10-14 20:23, Long long ago)] [ 传统版 | sForum ][登录后回复]2楼

You mean the argument to the function?As ASP is a scripting language, of course you can put variables there. I don't get what problem you are facing now.[Flying (10-15 4:12, Long long ago)] [ 传统版 | sForum ][登录后回复]3楼

(引用 Flying:You mean the argument to the function?As ASP is a scripting language, of course you can put variables there. I don't get what pr...)FOR EXAMPLE
<% Response.Redirect ("http://www.google.com") %> this works

however,

<% varAddress = 'http://www.google.com' %>
<% Response.Redirect ("varAddress") %>

did not work... instead, it give me http:\\xxx.xxx.com\varAddress
and

<% varAddress = 'http://www.google.com' %>
<% Response.Redirect (varAddress) %>

gave an error
[iloveyouso (10-16 1:25, Long long ago)] [ 传统版 | sForum ][登录后回复]4楼

(引用 iloveyouso:FOR EXAMPLE this works however, did not work... instead, it give me http:\\xxx.xxx.com\varAddress and gave an error ...)must use " instead of '<% varAddress = "http://www.google.com" %>
<% Response.Redirect varAddress %>
[Solitude (10-16 21:14, Long long ago)] [ 传统版 | sForum ][登录后回复]5楼

(引用 Solitude:must use " instead of ' ...)thanks a lot..[PigSpirit (10-17 0:48, Long long ago)] [ 传统版 | sForum ][登录后回复]6楼


<<始页  [1]  末页>> 
登录 | 首页 -> 华新鲜事 -> 技术の宅 | [刷新本页] | 切换到:传统版 / sForum