473,406 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

asp to asp.net conversion issues

Hi

I am trying to convert my asp app tp asp.net and I have a few issues;

1. I have the following code for a db connection;

onn = New ADODB.Connection
conn.Open("PROVIDER=SQLOLEDB;DATA
SOURCE=mysqlserver;UID=username;PWD=password;DATAB ASE=mydb")

I am getting a 'ADODB.Connection' is not defined.' error on the first line.
What is the fix for this?

2. I have a lot of Name xxxx is not declared. Do I need to define all these
variable?

Thanks

Regards


Sep 10 '06 #1
5 1241
"John" <Jo**@nospam.infovis.co.ukwrote in message
news:u$**************@TK2MSFTNGP05.phx.gbl...
I am trying to convert my asp app tp asp.net and I have a few issues;

1. I have the following code for a db connection;

onn = New ADODB.Connection
conn.Open("PROVIDER=SQLOLEDB;DATA
SOURCE=mysqlserver;UID=username;PWD=password;DATAB ASE=mydb")

I am getting a 'ADODB.Connection' is not defined.' error on the first
line. What is the fix for this?
The fix for this is to use ADO.NET, not ADO.
http://www.google.co.uk/search?hl=en...tutorial&meta=
2. I have a lot of Name xxxx is not declared. Do I need to define all
these variable?
You certainly do! Ain't no VBScript no more...!

I'd suggest you get yourself a copy of this:
http://www.amazon.com/ASP-NET-Everyd...e=UTF8&s=books

And read it from beginning to end before you do anything else...
Sep 10 '06 #2
Start here :
http://msdn.microsoft.com/asp.net/mi...t/default.aspx

Also, watch this video :
http://msdn.microsoft.com/msdntv/epi...s/manifest.xml


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"John" <Jo**@nospam.infovis.co.ukwrote in message news:u$**************@TK2MSFTNGP05.phx.gbl...
Hi

I am trying to convert my asp app tp asp.net and I have a few issues;

1. I have the following code for a db connection;

onn = New ADODB.Connection
conn.Open("PROVIDER=SQLOLEDB;DATA SOURCE=mysqlserver;UID=username;PWD=password;DATAB ASE=mydb")

I am getting a 'ADODB.Connection' is not defined.' error on the first line. What is the fix for
this?

2. I have a lot of Name xxxx is not declared. Do I need to define all these variable?

Thanks

Regards


Sep 10 '06 #3
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/

Sep 11 '06 #4
"Jason Kester" <ja*********@gmail.comwrote in message
news:11**********************@i3g2000cwc.googlegro ups.com...
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)
???

Porting from ADO to ADO.NET without ReSharper is next to impossible...???

What utter, utter nonsense!!

IMO, ADO.NET is one of the least complex areas of the entire .NET Framework.
Sep 11 '06 #5

Mark Rae wrote:
Porting from ADO to ADO.NET without ReSharper is next to impossible...???
No. ASP, not ADO. Porting ASP to ASP.NET without ReSharper is
thoroughly no fun. In fact, C# development in general goes a lot
faster if you have the right tools. That's why I told the guy to make
sure his development environment was up to speed before tackling a
port.

But yeah, ADO.NET is nothing special. If you remove the ADODB from the
front of everything, it's essentially a matter of hitting alt+enter a
bunch of times while ReSharper hands you the correct library
references.

Jason Kester
Expat Software Consulting Services
http://www.expatsoftware.com/
---
Get your own Travel Blog, with itinerary maps and photos!
http://www.blogabond.com/

Sep 11 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: junky_fellow | last post by:
Can anybody please explain this: When a value with integer type is converted to another integer type other than _Bool, if the new type is unsigned, the value is converted by repeatedly...
9
by: Girish | last post by:
Im trying to understand implicit type conversions from object -> string and vice versa. I have two classes, one Driver and one called StringWrapper. These are just test classes that try and...
0
by: VB Programmer | last post by:
Simple ASP.NET 1 site. Opened solution in beta 2 of 2.0. Ran thru conversion wizard and it states: "Conversion Complete. There were some errors during conversion." I view the conversion log...
5
by: Tom | last post by:
We currently have a rather large application that is in VB.NET 2002. We have just purchased licenses to the 2003/1.1 Framework version of Visual Studio. What kind of conversion, if any, will we...
47
by: rawCoder | last post by:
Hi, Just wanted to know if there is any speed difference between VB conversion Keywords like CInt, Clng, CStr, CDbl, CBool etc. ..NETs Convert.To<...> methods. And which is better to be...
3
by: Francesc | last post by:
Hi, I'm new at this newsgroup and I want do ask some questions and opinions about this subject. I'm developing an application focused in a very specific task: clean and labelling text documents...
1
by: musosdev | last post by:
Hi I've got a project I've just run through the conversion wizard, and it's giving me a few headaches. I've got a user control which has controls referrenced from its calling page...
11
by: santosh | last post by:
Hello all, Conversion macros along the name of INT8_C, INT16_C etc, are defined in stdint.h to convert their argument into suitable representations for their corresponding types, i.e. int8_t,...
6
by: Blasting Cap | last post by:
I'm trying to convert a 1.1 app to 2.0, and keep finding one thing after another that either Framework 2.0 or Visual Studio 2005 doesn't like. Now this - In the global.asax, code that has been...
4
by: =?Utf-8?B?c2lwcHl1Y29ubg==?= | last post by:
Hi I am converting a VS2005 Solution to VS2008 Solution and all went well I checked the Solution file (sln) and Project file (csproj) into SVN - I checkout the solution from SVN and it want to ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.