解决页面加载超时的问题
这个是我A页面的提交操作,传了4个参数过去(dment是字符型)
function setVal()
{
var obj = document.getElementById("select1");
var ID = obj.options[obj.selectedIndex].value;
var startDate = document.getElementById("qssj").value
var period = document.getElementById("zbzq").value
var dment = document.getElementById("department").value;
window.open("redirect.asp?ID+"&startDate="+startDate+"&period="+period+"&department='"+dment+"'","_self");
}
这是我B页面的vb代码:
<%@language=vbscript codepage=936 %>
<!--#include file ="conn_zb.asp" -->
<%
dim startDate,period,ID,dment,sql
dment = request("dment")
startDate = request("startDate")
period = request("period")
ID = request("ID")
sql = "Update Vote_OT set startDate =#"+startDate+"# , period="+period+" where ID ="+ID
conn.execute(sql)
response.redirect "superzb_Modify.asp?department="&dment&""
%>
跳转到superzb_Modify.asp页面时在IIS里出现超时现象,
superzb_Modify.asp页面的vb代码是这样的:
<%@language=vbscript codepage=936 %>
<!--#include file ="conn_zb.asp" -->
<%
dim dment,rs,sql
dment = request("department")
set rs=server.createobject("adodb.recordset")
sql = "select * from Vote_OT where department="&dment&""
rs.open sql,conn,1,1
%>
找了2天了实在不知道问题出在哪了,帮我解决掉问题的,另加200分!!!