PC Review


Reply
Thread Tools Rate Thread

asp to aspx conversion problem

 
 
John
Guest
Posts: n/a
 
      7th Feb 2007
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


 
Reply With Quote
 
 
 
 
Karl Seguin
Guest
Posts: n/a
 
      8th Feb 2007
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>
>


 
Reply With Quote
 
John
Guest
Posts: n/a
 
      8th Feb 2007
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" <(E-Mail Removed)> wrote in
message news:(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> 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
>>
>>

>



 
Reply With Quote
 
Mark Rae
Guest
Posts: n/a
 
      8th Feb 2007
"John" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...

> 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...


 
Reply With Quote
 
Jon Paal
Guest
Posts: n/a
 
      8th Feb 2007
http://msconline.maconstate.edu/tutorials/default.aspx







"John" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
asp to aspx conversion problem John Microsoft ADO .NET 3 9th Feb 2007 02:22 AM
http://msdn.microsoft.com/wn3/aspx/postui.aspx?&guid=&sloc=en-us&d =?Utf-8?B?SG93IHRvIGdldCBkZXRhaWxzIGZyb20gdGhlIE9T Microsoft Dot NET 1 16th Mar 2006 05:26 PM
How to rise aspx parent forms event from aspx Child form =?Utf-8?B?QXNzYW5LaGFuIElzbWFpbA==?= Microsoft ASP .NET 1 22nd Oct 2005 03:03 PM
Opening anoter .aspx window from the parent .aspx main project using C# Microsoft Microsoft ASP .NET 3 12th Mar 2004 04:09 AM
Specifying all files except Login.aspx and Join.aspx are restricted to authenticated users SamIAm Microsoft ASP .NET 1 4th Dec 2003 02:59 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:16 AM.