John wrote:
I am trying to convert my asp app tp asp.net and I have a few issues;
First off, if you have not yet done so, track down a copy of ReSharper.
I couldn't imagine trying to port from ASP to ASP.NET without it.
>
1. I have the following code for a db connection;
I am getting a 'ADODB.Connection' is not defined.' error on the first line.
What is the fix for this?
You have two options. The simple way to get your app up and running
(that will cripple you down the road) is to add a reference to the old
ADO library. In the project, under References, add a new reference and
dig around in the COM tab.
The real solution however, is to port your database stuff over to
ADO.NET. It's really not that hard (assuming you have ReSharper to
track down and fix your broken references. otherwise, next to
impossible), and will allow you to take advantage of all the cool
features for which you're porting to .NET in the first place.
>
2. I have a lot of Name xxxx is not declared. Do I need to define all these
variable?
Yes.
Good luck!
Jason Kester
Expat Software Consulting Services
http://www.expatsoftware.com/
---
Get your own Travel Blog, with itinerary maps and photos!
http://www.blogabond.com/