<% Session.Timeout=120 %>
<html>
<head><title>网络考场登录</title></head>
<body>
<center><br><br>
<p>
<font size="5"><b>网络考场用户登录</b></font>
<form method="POST" action="main.asp">
<%Response.Write("帐 号")%><br>
<input type="text" name="StudentID" size="21" value=<% _
=Session("StudentID")%>><br><br>
<%Response.Write("密 码")%><br>
<input type="password" name="Passwd" size="21"><br><br>
<input type="submit" value="登 录" name="B1">
<input type="reset" value="重 设" name="B2"><br>
</form>
</p>
<hr>
<p>2003.6 版权所有</p>
</body>
</html>
以上程序用interdev编写,预览后却没有帐号和密码???
Response.Write语句这样写有问题吗?我直接输入汉字能输出
你要把你的 ASP放到Web Server上才能看到结果。
interdev预揽是看不到的。
不可能没有吧,写的没有错
不知道你要这么写做什么
<%Response.Write("帐 号")%>它输出的就是帐号这两个字呀,不是你的变量值哟,
<form method="POST" action="main.asp">
<%Response.Write("帐 号")%><br>
这个和
<form method="POST" action="main.asp">
帐 号br>
没有两样
你那样写效率还低些
<% Session.Timeout=120 %>
<html>
<head><title>网络考场登录</title></head>
<body>
<center><br><br>
<p>
<font size="5"><b>网络考场用户登录</b></font>
<form method="POST" action="main.asp">
<%Response.Write("帐 号")%><br>
<input type="text" name="StudentID" size="21" value=<% _
=Session("StudentID")%>><br><br>
<%Response.Write("密 码")%><br>
<input type="password" name="Passwd" size="21"><br><br>
<input type="submit" value="登 录" name="B1">
<input type="reset" value="重 设" name="B2"><br>
</form>
</p>
<hr>
<p>2003.6 版权所有</p>
</body>
</html>
对呀,关键是在你的INTERDEV里预览是看不到效果的
必须在IE里用IIS来看效果的
輸出密碼倆个字還是變量