Hey guys.. I'm trying to make a very small TEST site with DW MX 2004, the point-and-click way.. without manually writing any code (not that i'm good at it anyway)
But I can't get it to work, i've tried to create and recreate sites, keep changing little things, but still nothing..
===========================================================
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!--#include file="Connections/db.asp" -->
<%
Dim rsRecentNews
Dim rsRecentNews_numRows
Set rsRecentNews = Server.CreateObject("ADODB.Recordset"
rsRecentNews.ActiveConnection = MM_db_STRING
rsRecentNews.Source = "SELECT * FROM Table1 ORDER BY newsDate DESC"
rsRecentNews.CursorType = 0
rsRecentNews.CursorLocation = 2
rsRecentNews.LockType = 1
rsRecentNews.Open()
rsRecentNews_numRows = 0
%>
<%
Dim Repeat1__numRows
Dim Repeat1__index
Repeat1__numRows = -1
Repeat1__index = 0
rsRecentNews_numRows = rsRecentNews_numRows + Repeat1__numRows
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<p>My Homepage</p>
<p>Recently, I've added a number of things to my site:</p>
<p><%=(rsRecentNews.Fields.Item("newsDate"
.Value)%></p>
<p><%=(rsRecentNews.Fields.Item("newsText"
.Value)%></p>
</body>
</html>
<%
rsRecentNews.Close()
Set rsRecentNews = Nothing
%>
==========================================================
----------------- My Connection file --------------------
<%
' FileName="default_oledb.htm"
' Type="ADO"
' DesigntimeType="ADO"
' HTTP="false"
' Catalog=""
' Schema=""
Dim MM_db_STRING
MM_db_STRING = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\folder\test\news.mdb;Persist Security Info=False"
%>
----------------- My Connection file --------------------
I upload the index.asp in the Root
news.mdb into the Root
and /Connections/db.asp
I try to access via the internet, I get http 500 internal error.
I don't understand how the connections file is supposed to locate my database when i'm trying site on the internet, when it thinks the location is c:\folder\etc..
But I did try changing that to just local path.
But I can't get it to work, i've tried to create and recreate sites, keep changing little things, but still nothing..
===========================================================
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!--#include file="Connections/db.asp" -->
<%
Dim rsRecentNews
Dim rsRecentNews_numRows
Set rsRecentNews = Server.CreateObject("ADODB.Recordset"
rsRecentNews.ActiveConnection = MM_db_STRING
rsRecentNews.Source = "SELECT * FROM Table1 ORDER BY newsDate DESC"
rsRecentNews.CursorType = 0
rsRecentNews.CursorLocation = 2
rsRecentNews.LockType = 1
rsRecentNews.Open()
rsRecentNews_numRows = 0
%>
<%
Dim Repeat1__numRows
Dim Repeat1__index
Repeat1__numRows = -1
Repeat1__index = 0
rsRecentNews_numRows = rsRecentNews_numRows + Repeat1__numRows
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<p>My Homepage</p>
<p>Recently, I've added a number of things to my site:</p>
<p><%=(rsRecentNews.Fields.Item("newsDate"
<p><%=(rsRecentNews.Fields.Item("newsText"
</body>
</html>
<%
rsRecentNews.Close()
Set rsRecentNews = Nothing
%>
==========================================================
----------------- My Connection file --------------------
<%
' FileName="default_oledb.htm"
' Type="ADO"
' DesigntimeType="ADO"
' HTTP="false"
' Catalog=""
' Schema=""
Dim MM_db_STRING
MM_db_STRING = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\folder\test\news.mdb;Persist Security Info=False"
%>
----------------- My Connection file --------------------
I upload the index.asp in the Root
news.mdb into the Root
and /Connections/db.asp
I try to access via the internet, I get http 500 internal error.
I don't understand how the connections file is supposed to locate my database when i'm trying site on the internet, when it thinks the location is c:\folder\etc..
But I did try changing that to just local path.