Results 1 to 6 of 6

Thread: Error:Type 'adoconnection' is not defined

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2002
    Location
    India
    Posts
    342

    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
    ksm

  2. #2
    Fanatic Member Patoooey's Avatar
    Join Date
    Aug 2001
    Location
    New Jersey, USA
    Posts
    774
    Your trying to mix old ASP code with new ASP.NET.

    Check out ASP.Net for tutorials.

    John

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2002
    Location
    India
    Posts
    342

    then..

    then can u give me an example for using ADO recordsets in ASP.NET?? ...


    thanX in advance
    ksm

  4. #4
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    actually that code is dirt old..like beta 1 code.

    there are tutorials at the link he gave you.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2002
    Location
    India
    Posts
    342

    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??
    ksm

  6. #6
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367
    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
  •  



Click Here to Expand Forum to Full Width