|
-
Oct 27th, 2002, 01:01 PM
#1
Thread Starter
Hyperactive Member
Error:Type 'adoconnection' is not defined
iam getting Compiler Error Message: BC30002: Type 'adoconnection' is not defined at line 6..
------------------------------------
1. <%@ Page Language="vb" %>
2. <%@ import Namespace="system.data" %>
3. <%@ import Namespace="system.data.ado" %>
4. <script runat="server">
5.
6. dim cnn as adoconnection
7. dim cmd as adodatasetcommand
8. dim ds as new dataset
....
....
------------------------------------
can anyone pl help me!..
ThanX in advance
-
Oct 28th, 2002, 11:58 PM
#2
Fanatic Member
Your trying to mix old ASP code with new ASP.NET.
Check out ASP.Net for tutorials.
John
-
Oct 29th, 2002, 12:59 PM
#3
Thread Starter
Hyperactive Member
then..
then can u give me an example for using ADO recordsets in ASP.NET?? ...
thanX in advance
-
Oct 29th, 2002, 01:04 PM
#4
actually that code is dirt old..like beta 1 code.
there are tutorials at the link he gave you.
-
Oct 29th, 2002, 01:19 PM
#5
Thread Starter
Hyperactive Member
but...
i hav checked that link already.. but it consists of example with SQL server database .. and i wanted connection to Oracle databse... any other good web sites for that??
-
Nov 3rd, 2002, 10:35 PM
#6
You can use an OLEDB.OleDBConnection.
Here is a great site for all of your connection needs:
http://www.able-consulting.com/ado_conn.htm
Hope this helps,
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|