473,395 Members | 1,658 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,395 software developers and data experts.

asp to aspx conversion problem

Hi

I have used the wizard provided on www.asp.net to convert an asp app to
aspx. Now I am getting the Type 'xxx' is not defined error on the following;

Dim rs As ADODB.Recordset
Dim conn As ADODB.Connection
Dim Flds As ADODB.Fields

How can I fix this?

Thanks

Regards
Feb 7 '07 #1
4 1279
Drop the conversion app and learn ASP.NET.

I'm not trying to be rude, but if you have code that looks like that, why
not just keep it in ASP?

There's no situation where using a conversion tool will be beneficial. If
your app is small, it shouldn't take very long to convert it. If it's big, a
conversion tool will fail miserably and you'll end up with a huge
unmaintainable mess.
Karl
--
http://www.openmymind.net/
http://www.codebetter.com/
"John" <Jo**@nospam.infovis.co.ukwrote in message
news:en**************@TK2MSFTNGP04.phx.gbl...
Hi

I have used the wizard provided on www.asp.net to convert an asp app to
aspx. Now I am getting the Type 'xxx' is not defined error on the
following;

Dim rs As ADODB.Recordset
Dim conn As ADODB.Connection
Dim Flds As ADODB.Fields

How can I fix this?

Thanks

Regards

Feb 8 '07 #2
Hi Karl

Its an average size app and there is a lot of repetitive sort of code. I
figure if I can get answer to this question a lot of stuff would be fixed
easily.

Thanks

Regards

"Karl Seguin" <ka********@removeopenmymindremovemetoo.andmenetwr ote in
message news:el**************@TK2MSFTNGP03.phx.gbl...
Drop the conversion app and learn ASP.NET.

I'm not trying to be rude, but if you have code that looks like that, why
not just keep it in ASP?

There's no situation where using a conversion tool will be beneficial. If
your app is small, it shouldn't take very long to convert it. If it's big,
a conversion tool will fail miserably and you'll end up with a huge
unmaintainable mess.
Karl
--
http://www.openmymind.net/
http://www.codebetter.com/
"John" <Jo**@nospam.infovis.co.ukwrote in message
news:en**************@TK2MSFTNGP04.phx.gbl...
>Hi

I have used the wizard provided on www.asp.net to convert an asp app to
aspx. Now I am getting the Type 'xxx' is not defined error on the
following;

Dim rs As ADODB.Recordset
Dim conn As ADODB.Connection
Dim Flds As ADODB.Fields

How can I fix this?

Thanks

Regards


Feb 8 '07 #3
"John" <Jo**@nospam.infovis.co.ukwrote in message
news:ur**************@TK2MSFTNGP05.phx.gbl...
Its an average size app and there is a lot of repetitive sort of code. I
figure if I can get answer to this question a lot of stuff would be fixed
easily.
Karl is absolutely right - the conversion wizard is worse than useless, and
will only end up causing you much more problems than it solves...

ADO has been superseded by ADO.NET - don't even think of trying to use ADO
in ASP.NET...

Buy yourself a decent introduction to ASP.NET or go on a beginners'
course...
Feb 8 '07 #4
http://msconline.maconstate.edu/tutorials/default.aspx



"John" <Jo**@nospam.infovis.co.ukwrote in message news:en**************@TK2MSFTNGP04.phx.gbl...
Hi

I have used the wizard provided on www.asp.net to convert an asp app to aspx. Now I am getting the Type 'xxx' is not defined
error on the following;

Dim rs As ADODB.Recordset
Dim conn As ADODB.Connection
Dim Flds As ADODB.Fields

How can I fix this?

Thanks

Regards


Feb 8 '07 #5

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

Similar topics

1
by: Vladimir Khvostov | last post by:
Hi, We have some DB2 table on the host that has varchar(3200) columns that are used to store binary data (I know that "varchar(3200) for bit data" should have been used, by modifying host table is...
31
by: Bjørn Augestad | last post by:
Below is a program which converts a double to an integer in two different ways, giving me two different values for the int. The basic expression is 1.0 / (1.0 * 365.0) which should be 365, but one...
11
by: Steve Gough | last post by:
Could anyone please help me to understand what is happening here? The commented line produces an error, which is what I expected given that there is no conversion defined from type double to type...
3
by: Steve Richter | last post by:
here is a warning I am getting in a C++ .NET compile: c:\SrNet\jury\JuryTest.cpp(55) : warning C4927: illegal conversion; more than one user-defined conversion has been implicitly applied while...
0
by: Gian Paolo Clarici | last post by:
I'm migrating one Asp page to Aspx. There is a recordset and I need to Reponse.write the content of one of its fields . That field comes from a Numeric(5,2) SQL datatype Its content is : 90.00 ...
8
by: Thomas Coleman | last post by:
Ok, I've obviously discovered that Global.aspx has been completely changed in ..NET 2.0. However, I haven't figured out how to declare a constant that's available to any page in my application...
4
by: Påhl Melin | last post by:
I have some problems using conversion operators in C++/CLI. In my project I have two ref class:es Signal and SignalMask and I have an conversion function in Signal to convert Signal:s to...
3
by: Todd Burry | last post by:
I created a server control that inherits from WebControl that has the following property: private Object _Value; public Object Value { get { return _Value; } set { _Value = value; } } I...
1
by: =?Utf-8?B?SG93IHRvIGVtYmVkIGEgQnJvd3Nlci4uLi4uLi4u | last post by:
I have developed an aspx page that dynamically renders the HTML content ..I want to export the contents now into a pdf file for printing? Can anyone help me in doing this?Is there any free dll...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.