ASPX ADOConnection

Results 1 to 3 of 3

Thread: ASPX ADOConnection

  1. #1
    Mark A Guest

    Default ASPX ADOConnection

    Hmmmm. Just Installed BETA2 and MDAC 2.7. I am trying an example from the 4guys site and get the following compilation error:<BR><BR>BC30002: Type is not defined: &#039;ADOConnection&#039;<BR><BR>The code (to that point) is:<BR><BR>&#060;%@ language="vb" %&#062;<BR>&#060;%@ import namespace="" %&#062;<BR>&#060;%@ import namespace="" %&#062;<BR><BR>&#060;script language="vb" runat="server"&#062;<BR><BR> Sub Page_Load(Source as Object, E as EventArgs)<BR> Dim strConnString as String<BR> strConnString = "Provider=SQLOLEDB; Data Source=(local); " & _<BR> "Initial Catalog=pubs; User ID=sa"<BR><BR> Dim objConn as ADOConnection<BR> objConn = New ADOConnection(strConnString)<BR> objConn.Open()<BR><BR>

  2. #2
    John D Guest

    Default RE: ASPX ADOConnection

    Go to<BR>They just updated all their code to work with BETA 2. Almost all the code on tutorial sites is still from BETA 1 and won;t work with BEAT 2.

  3. #3
    Join Date
    Dec 1969

    Default RE: ASPX ADOConnection

    you don&#039;t use "" anymore - use ""<BR><BR>and the object is an oledbconnection now instead of adoconnection<BR><BR>hth

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts