中国网管论坛's Archiver

网者 发表于 2006-11-18 11:16

asp中插入jsp语句

<%
session("docid")=request.QueryString("id")
if session("docid")<>"" and session("docid")<210 and session("docid")>201 then
[b]response.Write"
<SCRIPT LANGUAGE="JavaScript">
function password() {
var testV = 1;
var clf = prompt('请输入密码:','');
while (testV < 3) {
if (!clf)
history.go(-1);
if (clf == "haoshi") {
alert('密码正确!');
break;
}
testV+=1;
var clf =
prompt('密码错误!请重新输入:');
}
if (clf!="password" & testV ==3)
{alert('密码或用户名错误');window.close();}
}
document.write(password());
</SCRIPT>"
response.redirect "doc_more1.asp"
[/b]else
response.Redirect"doc_more2.asp"
end if
%>
各位前辈,如何在asp程序中,加入jsp呢,加黑的地方是不对,请前辈指点!我是希望如果在201到210的范围内,如果密码正确就跳转到doc-more1.asp,您帮忙看看,谢谢:handshake

网者 发表于 2006-11-20 09:23

我想在asp中应用一端jsp的代码,应该怎样做呢:handshake 谢谢

BBQhy 发表于 2006-11-20 14:55

学习中
↓↓↓↓

网者 发表于 2006-11-20 17:03

我觉得应该从这儿开始就是不对的,response.Write"
<SCRIPT LANGUAGE="JavaScript">前辈帮忙看看:handshake 谢谢

网者 发表于 2006-11-22 10:03

哎,只能自己顶:L

网者 发表于 2006-11-23 11:06

:handshake 大虾帮忙呐

页: [1]

Powered by Discuz! Archiver 6.1.0  © 1999-2008 bbs.bitsCN.com