asp的response.write输出!
我想当Request.cookies("check")="a"时输出<td><inputname="按钮"type="button"style="border:0;bor...
我想当Request.cookies("check") ="a"时输出
<td><input name="按钮" type="button" style="border:0; border-bottom:1 solid black; background:;background-color: #FFF5F0; color: #666666; overflow-x:hidden; overflow-y:hidden; height: 25px; width: 200px;" value="点击注销" onclick="window.location.href='out.asp'"></td>
否则输出
<td><input id="s" type="password" name="passid" value="" /></td>
<td><input name="提交" type="submit" style="border:0; border-bottom:1 solid black; background:;background-color: #FFF5F0; color: #666666; overflow-x:hidden; overflow-y:hidden; height: 25px;" value="登录"></td>
该怎样写???
我写成
<%if Request.cookies("check") ="a" then response.write "<td><input name='按钮' type='button' style='border:0; border-bottom:1 solid black; background:;background-color: #FFF5F0; color: #666666; overflow-x:hidden; overflow-y:hidden; height: 25px; width: 200px;' value='点击注销' onclick='window.location.href='out.asp''></td>"
else
response.write"<td><input id='s' type='password' name='passid' value='' /></td>
<td><input name='提交' type='submit' style='border:0; border-bottom:1 solid black; background:;background-color: #FFF5F0; color: #666666; overflow-x:hidden; overflow-y:hidden; height: 25px;' value='登录'></td>"
end if
%>
提示500错误!!不知错在哪?? 展开
<td><input name="按钮" type="button" style="border:0; border-bottom:1 solid black; background:;background-color: #FFF5F0; color: #666666; overflow-x:hidden; overflow-y:hidden; height: 25px; width: 200px;" value="点击注销" onclick="window.location.href='out.asp'"></td>
否则输出
<td><input id="s" type="password" name="passid" value="" /></td>
<td><input name="提交" type="submit" style="border:0; border-bottom:1 solid black; background:;background-color: #FFF5F0; color: #666666; overflow-x:hidden; overflow-y:hidden; height: 25px;" value="登录"></td>
该怎样写???
我写成
<%if Request.cookies("check") ="a" then response.write "<td><input name='按钮' type='button' style='border:0; border-bottom:1 solid black; background:;background-color: #FFF5F0; color: #666666; overflow-x:hidden; overflow-y:hidden; height: 25px; width: 200px;' value='点击注销' onclick='window.location.href='out.asp''></td>"
else
response.write"<td><input id='s' type='password' name='passid' value='' /></td>
<td><input name='提交' type='submit' style='border:0; border-bottom:1 solid black; background:;background-color: #FFF5F0; color: #666666; overflow-x:hidden; overflow-y:hidden; height: 25px;' value='登录'></td>"
end if
%>
提示500错误!!不知错在哪?? 展开
3个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询