Hi,
I am a new to asp.I am creating a webside for intranet
I've created a asp in FP2000.
when i preview in browser i can see my code only.
How do i know if it is working and how i can debug.
what are my steps? do i need pws on my computer?
here is my simple code
<%
Dim cnnSimple
Dim rstSimple
Set cnnSimple = server.CreateObject("ADODB.Connection"
cnnSimple.Open "driver=SQL Server;server=10.1.1.50;uid = sa; password = '';database=intranet;"<BR>
Set rstSimple = cnnSimple.Execute("SELECT * From tbl_department"
<BR>%><BR>
%>
<table border="1" height="18">
<%
Do While Not rstSimple.EOF
%>
<tr>
<td height="12"><%= rstSimple.Fields("dep_id"
.Value %></td>
<td height="12"><%= rstSimple.Fields("s_name"
.Value %></td>
<td height="12"><%= rstSimple.Fields("name_ref"
.Value %></td>
</tr>
<%
rstSimple.MoveNext
Loop
%>
</table>
<%
rstSimple.Close
Set rstSimple = Nothing
cnnSimple.Close
Set cnnSimple = Nothing
%>
thank you in advance
I am a new to asp.I am creating a webside for intranet
I've created a asp in FP2000.
when i preview in browser i can see my code only.
How do i know if it is working and how i can debug.
what are my steps? do i need pws on my computer?
here is my simple code
<%
Dim cnnSimple
Dim rstSimple
Set cnnSimple = server.CreateObject("ADODB.Connection"
cnnSimple.Open "driver=SQL Server;server=10.1.1.50;uid = sa; password = '';database=intranet;"<BR>
Set rstSimple = cnnSimple.Execute("SELECT * From tbl_department"
%>
<table border="1" height="18">
<%
Do While Not rstSimple.EOF
%>
<tr>
<td height="12"><%= rstSimple.Fields("dep_id"
<td height="12"><%= rstSimple.Fields("s_name"
<td height="12"><%= rstSimple.Fields("name_ref"
</tr>
<%
rstSimple.MoveNext
Loop
%>
</table>
<%
rstSimple.Close
Set rstSimple = Nothing
cnnSimple.Close
Set cnnSimple = Nothing
%>
thank you in advance