幾個asp例子

session timeout
=====
<%if session("user_id")="" then%>
<script language="javascript">alert("<%=session_timeout%>");location.href="mas_login.asp";</script>
<%end if%>
======
條件不成立時返回提交頁面
======
 if sumoutput_qty>sumquota_qty then
   response.Write("<script language='javascript'>alert('生產數量大於配額量,請檢查.');window.history.back();</script>")
   rs.close
   conn.close
   response.end
 end if
posted @ 2007-01-17 16:05  Athrun  阅读(520)  评论(0编辑  收藏  举报