Hi All,
I am having hard time in using tradional ADO objects in to my asp.net
application.
i have created one very simple test function to check that whether i
can
ablt to create instance of ado objects..following r the steps that i
did..
-> created asp.net prject
--> add reference of ado 2.7(tried with 2.6 also)
--> add class in to project where i wrote this follwing function
Public Function getemp() As Boolean
Dim con As ADODB.Connection
con =3D New ADODB.Connection()
con.Open("Provider=3DSQLOLEDB.1;Persist Security
Info=3DFalse;User
ID=3Dsa;Initial Catalog=3Dvcc;Data Source=3DVCC-DEV-001\VCC")
getemp =3D True
End Function
--> In my aspx page in <%@page src.." i m giving reference to that vb
class
and when i run this page its giving error that "Type 'ADODB.Connection'
is
not defined."..line 16
Line 15: Public Function getemp() As Boolean
Line 16: Dim con As New ADODB.Connection()
thanks yaar..try to reply jaldi
Hi all,
I am having hard time in using traditional ADO in vb.net..
i have created one very simple test function to check that whether i
can
able to create instance of ado objects.
Following are the steps that i followed.
--> created asp.net prject
--> add reference of ado 2.7(tried with 2.6 also)
--> add class in to project where i wrote this follwing function
Public Function getemp() As Boolean
Dim con As ADODB.Connection
con =3D New ADODB.Connection()
con.Open("Provider=3DSQLOLEDB.1;Persist Security
Info=3DFalse;User
ID=3Dsa;Initial Catalog=3Dvcc;Data Source=3DVCC-DEV-001\VCC")
getemp =3D True
End Function
--> In my aspx page in <%@page src.." i m giving reference to that vb
class
and when i run this page its giving error that "Type 'ADODB.Connection'
is
not defined."..line 16
Line 15: Public Function getemp() As Boolean
Line 16: Dim con As New ADODB.Connection()
thanks for your time.
avnish
http://www.patni.com
World-Wide Partnerships. World-Class Solutions.
=AD__________________________________________________________________
The information transmitted is intended only for the person or entity
to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by
persons or entities other than the intended recipient is prohibited.If
you
received this in error, please contact the sender and delete the
material
from any computer.
=AD__________________________________________________________________