Quantcast
Channel: Classic ASP
Viewing all articles
Browse latest Browse all 488

problems converting asp to aspx from iis6 to iis8 with sql commands

$
0
0

I have a web site on a server 2003 iis6 machine. I am converting to a server 2012 iis 8.

this is my code:

<%@ Page Language="C#" Debug="true" %><HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=windows-1252"><TITLE>Peolple List</TITLE></HEAD><body background="shamback2.gif"><h1 align="center"><font color="black"><b>People List</b></font></h1><h4 align="center"><%
    Dim conn = Server.CreateObject("ADODB.Connection");
    conn.connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("/IntranetMDB/DrList.mdb");
    conn.open 
%><!-- *********** Get last Updated Date From Table  ************** --><%
    Dim rs = Server.CreateObject("ADODB.Recordset");
    Dim sql;
    sql = "SELECT * FROM [Update]";
    rs.Open
%><FONT FACE="Arial" COLOR="red">Last Updated</br><%=Server.HTMLEncode(rs.Fields("Date").Value)%></FONT><%
  rs.close
%></h4><!-- ************** End Last Updated Query *********************** --><!-- *********** Begin Builing Fee Results  ****************** --><%

    sql = "SELECT * FROM [List]";

%><TABLE ALIGN="center" WIDTH="70%" BORDER="1" BGCOLOR="#ffffff" CELLSPACING="0"><FONT FACE="Arial" COLOR="#000000"><THEAD><TR><TH BGCOLOR=#c0c0c0 BORDERCOLOR=#000000 ><FONT SIZE=2 FACE="Arial" COLOR=#000000>Persons's Name</FONT></TH><TH BGCOLOR=#c0c0c0 BORDERCOLOR=#000000 ><FONT SIZE=2 FACE="Arial" COLOR=#000000>Title</FONT></TH><TH BGCOLOR=#c0c0c0 BORDERCOLOR=#000000 ><FONT SIZE=2 FACE="Arial" COLOR=#000000>Number</FONT></TH><TH BGCOLOR=#c0c0c0 BORDERCOLOR=#000000 ><FONT SIZE=2 FACE="Arial" COLOR=#000000>Code</FONT></TH><TH BGCOLOR=#c0c0c0 BORDERCOLOR=#000000 ><FONT SIZE=2 FACE="Arial" COLOR=#000000>Specialty</FONT></TH><TH BGCOLOR=#c0c0c0 BORDERCOLOR=#000000 ><FONT SIZE=2 FACE="Arial" COLOR=#000000>Ppin</FONT></TH><TH BGCOLOR=#c0c0c0 BORDERCOLOR=#000000 ><FONT SIZE=2 FACE="Arial" COLOR=#000000>PPI</FONT></TH><TH BGCOLOR=#c0c0c0 BORDERCOLOR=#000000 ><FONT SIZE=2 FACE="Arial" COLOR=#000000>Exit Date</FONT></TH></TR></THEAD><TBODY><%
On Error; Resume Next;
rs.MoveFirst;
do while ((not) rs.eof); ** This is my problem line **

I am getting errors for that line:

c:\inetpub\wwwroot\Physicians\ListAll.aspx(64,25): error CS1003: Syntax error, 'while' expected
c:\inetpub\wwwroot\Physicians\ListAll.aspx(64,25): error CS1003: Syntax error, '(' expected

I am thinking that the "do" needs to be above the rs.MoveFirst line.

I am pulling lines of information from an access database to display in a window in the IE site.

I am also getting the following errors:

:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\26676eb7\92c7e946\App_Web_d-5zx4gz.0.cs(169,17): error CS1002: ; expected
c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\26676eb7\92c7e946\App_Web_d-5zx4gz.0.cs(169,17): error CS1525: Invalid expression term '.'
c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\26676eb7\92c7e946\App_Web_d-5zx4gz.0.cs(169,18): error CS1002: ; expected
c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\26676eb7\92c7e946\App_Web_d-5zx4gz.0.cs(181,17): error CS1002: ; expected
c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\26676eb7\92c7e946\App_Web_d-5zx4gz.0.cs(181,17): error CS1525: Invalid expression term '.'
c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\26676eb7\92c7e946\App_Web_d-5zx4gz.0.cs(181,18): error CS1002: ; expected
c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\26676eb7\92c7e946\App_Web_d-5zx4gz.0.cs(199,17): error CS1002: ; expected
c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\26676eb7\92c7e946\App_Web_d-5zx4gz.0.cs(199,17): error CS1525: Invalid expression term '.'
c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\26676eb7\92c7e946\App_Web_d-5zx4gz.0.cs(199,18): error CS1002: ; expected

This was originally an asp page, but have to convert to aspx.


Viewing all articles
Browse latest Browse all 488

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>