To resolve this problem, download and install ASP.NET
version 1.1 on the computer that hosts the Web page, and then edit the
Fpdbnet.cs file to change the database connection. ASP.NET version 1.1 includes
support for the
OdbcDataAdapter. To download ASP.NET version 1.1, visit the following ASP.NET Web
page:
To edit the Fpdbnet.cs file and make the required changes, follow
these steps:
- Click Start, right-click My
Computer, and then click Explore.
- Expand My Documents/My Web Sites/
_fpclass.
- Right-click Fpdbnet.cs, and then click
Open.
- If the file does not open, in the Windows
dialog box, click Select the program from a list, and then
click OK.
In the Programs list,
click Notepad, and then click OK. - Click Edit, and then click
Replace.
- In the Find what box, type
Oledb, and in the Replace with box,
type Odbc.
- Click Replace all, and then close the
Replace dialog box.
- Find the three lines that say DataTable
literalInfo, and then type a ; (semicolon) at
the beginning of each line to prevent these lines from processing.
- In Microsoft Windows Explorer, expand My
Documents/My Web Sites/ _vti_cnf, right-click the
Global.asa file, and then click
Edit.
- Find the appropriate database connection and copy the
connection string (for example, DSN=SQLDSN;Driver={SQL Driver}).
- Click Fpdbnet.cs and find the line that
says _dbConn = new
OdbcConnection(strConnStr.ToString()).
- Paste the database connection string that you copied from
the Global.asa file in the brackets of this line so that the
line now reads _dbConn = new OdbcConnection(copied_connection_string_pasted_here).
- Save and close Fpdbnet.cs, close
Global.asa, and then quit Windows Explorer.
- Open your Web page in your browser.
You can now
view the database.