<%
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open "abc","ID","Password"
conn.commandtimeout=120
Set RS = Server.CreateObject("ADODB.RecordSet")
rs.activeConnection = Conn
%>
傳統的ASP文件
<%response.buffer = true%>
<%Response.Expires = 0%>
<!-- #include file="functions.asp" -->
<% Response.Write session("RequestID")%>
<%if session("ValidLogon") <> "true" then
if request("FromEmail") = "True" then
SetSessVar()
else%>
<%response.redirect "Default.asp"
end if
end if%>
<html>
<body>
<%rs.Source = "SELECT * from tblRequests WHERE RequestID = " & request("requestID")
rs.Open
session("RequestID") = rs("requestid")
if rs("RequestType") = "O" then
response.clear
If request("Tag") = "Change" then
response.redirect "abc.asp#change"
else
response.redirect "abc.asp?From=" & request("From")
end if
else
response.clear
If request("Tag") = "Change" then
response.redirect "editinternal.asp#change"
else
response.redirect "editinternal.asp?From=" & request("From")
end if
end if
rs.close%>
</body>
</html>
我已經檢查了傳統的ASP頁面,它看起來像有「Body」標籤中的語法錯誤。我對此一無所知。
這是給內部服務器錯誤500
如果您提供了完整的500錯誤,它會發生什麼行以及錯誤描述是什麼? – Lankymart
您是否知道如何配置IIS以提供經典asp的詳細錯誤消息? http://www.chestysoft.com/asp-error-messages.asp – John
@約翰 - 我不知道這件事。你可以幫我嗎? – Amit