Hello i am attempting my first asp in interdev ver6. the page is meant to connect to SQL server2000 and get data from the northwind database. The project called CustomerAsp, contains a global.asa file and customer.asp page.
global.asa contains the following code:
------------------------------------------------
<SCRIPT LANGUAGE=VBScript RUNAT=Server>
Sub Application_OnStart()
application("DBconn"="Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Northwind;Data Source=600X;"
End Sub
</SCRIPT>
------------------------------------------------
customer.asp contains the following code:
-------------------------------------------------
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY>
<%
dim cn
dim rs
set cn=server.CreateObject("ADODB.connection"
cn.Open(application("DBConn")
sSQL="select CustomerID, CompanyName, " & _
"ContactName, Country from Customers"
set rs=cn.Execute(sSQL)
%>
<TABLE Border="1" Cellspacing="2" Cellpadding="2">
<TR>
<TH>Customer ID </TH>
<TH>Company Name</TH>
<TH>Contact Name</TH>
<TH>Country</TH>
</TR>
<%
do until re.EOF
Response.Write("<TR>"
Response.Write("<TD>" & rs("CustomerID" & "</TD>"
Response.Write("<TD>" & rs("CompanyName" & "</TD>"
Response.Write("<TD>" & rs("ContactName" & "</TD>"
Response.Write("<TD>" & rs("Country" & "</TD>"
Response.Write("</TR>"
rs.MoveNext
loop
%>
<P> </P>
</BODY>
</HTML>
---------------------------------------------------
When i try to preview this page in explorer i get the following error:
--------------------------------------------------
There is a problem with the page you are trying to reach and it cannot be displayed.
Please try the following:
Open the 600x home page, and then look for links to the information you want.
Click the Refresh button, or try again later.
Click Search to look for information on the Internet.
You can also see a list of related sites.
HTTP 500 - Internal server error
Internet Explorer
--------------------------------------------------
i have tried looking for this error on the Microsoft website and no luck.If anyone has any advice as to something i have missed or need to do it would be greatly appreciated,
Thanks
Justin
global.asa contains the following code:
------------------------------------------------
<SCRIPT LANGUAGE=VBScript RUNAT=Server>
Sub Application_OnStart()
application("DBconn"="Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Northwind;Data Source=600X;"
End Sub
</SCRIPT>
------------------------------------------------
customer.asp contains the following code:
-------------------------------------------------
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY>
<%
dim cn
dim rs
set cn=server.CreateObject("ADODB.connection"
cn.Open(application("DBConn")
sSQL="select CustomerID, CompanyName, " & _
"ContactName, Country from Customers"
set rs=cn.Execute(sSQL)
%>
<TABLE Border="1" Cellspacing="2" Cellpadding="2">
<TR>
<TH>Customer ID </TH>
<TH>Company Name</TH>
<TH>Contact Name</TH>
<TH>Country</TH>
</TR>
<%
do until re.EOF
Response.Write("<TR>"
Response.Write("<TD>" & rs("CustomerID" & "</TD>"
Response.Write("<TD>" & rs("CompanyName" & "</TD>"
Response.Write("<TD>" & rs("ContactName" & "</TD>"
Response.Write("<TD>" & rs("Country" & "</TD>"
Response.Write("</TR>"
rs.MoveNext
loop
%>
<P> </P>
</BODY>
</HTML>
---------------------------------------------------
When i try to preview this page in explorer i get the following error:
--------------------------------------------------
There is a problem with the page you are trying to reach and it cannot be displayed.
Please try the following:
Open the 600x home page, and then look for links to the information you want.
Click the Refresh button, or try again later.
Click Search to look for information on the Internet.
You can also see a list of related sites.
HTTP 500 - Internal server error
Internet Explorer
--------------------------------------------------
i have tried looking for this error on the Microsoft website and no luck.If anyone has any advice as to something i have missed or need to do it would be greatly appreciated,
Thanks
Justin