首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > ASP >

菜鸟有关问题

2012-03-18 
初学者问题在b.asp中,接收了从a.asp的数据dimyourNameyourNametrim(Request.Form( userName ))我想在b.

初学者问题
在b.asp中,接收了从   a.asp的数据
dim     yourName
yourName=trim(Request.Form( "userName "))
我想在b.asp中用alert是显示出“你的名子是XXX”(X为收到数据)
我写了以下句子:
〈%
              response.write " <SCRIPT   language=JavaScript> "
response.write "alert( '您输入的验证码不正确。 '+yourName); "
response.write "location.href= 'login.asp ' </SCRIPT> "
%〉
但发现这个变量yourName是在服务器端,在客户端无法显示,而且一个是VBScritp
一个是jscript,请问如何解决?

[解决办法]
response.write "alert( '您输入的验证码不正确。 ' "&yourName& "); "
[解决办法]
response.write( "alert( '您输入的验证码不正确。 ' "& yourName & "); ")

热点排行