Fejl i asp forum
Har et problem. Min hjemmeside siger sådan:The page cannot be displayed
There is a problem with the page you are trying to reach and it cannot be displayed.
--------------------------------------------------------------------------------
Please try the following:
Click the Refresh button, or try again later.
Open the localhost home page, and then look for links to the information you want.
HTTP 500.100 - Internal Server Error - ASP error
Internet Information Services
--------------------------------------------------------------------------------
Technical Information (for support personnel)
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] Cannot update. Database or object is read-only.
/forum_opret.asp, line 24
Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1)
Page:
POST 33 bytes to /forum_opret.asp
POST Data:
ForumNavn=temp&ForumBeskrivelse=k
Time:
Wednesday, August 02, 2006, 5:25:02 AM
More information:
Microsoft Support
Min kode
<%
Response.Buffer = True
' -> DETTE ER VARIABLERNE TIL DATABASEN.
Dim myConn
Dim strSQL
' -> DSNLess FORBINDELSE TIL DATABASEN.
Set myConn = Server.CreateObject("ADODB.Connection")
myConn.Open "Driver={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("database/forum.mdb")
strSQL = "SELECT * FROM Fora"
Set rs = Server.CreateObject("ADODB.recordset")
rs.Open strSQL, myConn, 1, 3
' -> DETTE ER VARIABLERNE FRA FORMULARFELTERNE.
Dim Forum
Dim ForumBeskrivelse
rs.AddNew
rs("ForumNavn") = Request.Form("ForumNavn")
rs("ForumBeskrivelse") = Request.Form("ForumBeskrivelse")
rs.Update
rs.Close
Set rs = Nothing
myConn.Close
Set myConn = Nothing
Response.Redirect("forum_oversigt.asp")
%>
