Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Connecting to database from class

Reply
Thread Tools

Connecting to database from class

 
 
RedRed
Guest
Posts: n/a
 
      03-05-2005
Hi all,

How to write the code to connect to database from the
class .vb instead from the aspx page .aspx.

Thanks
 
Reply With Quote
 
 
 
 
MasterGaurav
Guest
Posts: n/a
 
      03-06-2005
Write your code in codebehind.
-- OR --

Create a separate class with all needed parameters etc
put the compiled dll in bin folder.
and then make use of this class in your aspx/codebehind.

You will need to import the namespace.

--
Cheers,
Gaurav Vaish
http://www.mastergaurav.org
http://mastergaurav.blogspot.com
----------------------

 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Database Database Database Database scott93727@gmail.com Computer Information 0 09-27-2012 02:43 AM
DataBase DataBase DataBase DataBase scott93727@gmail.com Computer Information 0 09-26-2012 09:40 AM
Class A contains class B, class B points to class A Joseph Turian C++ 5 12-30-2005 03:24 PM
Nested Class, Member Class, Inner Class, Local Class, Anonymous Class E11 Java 1 10-12-2005 03:34 PM
A parameterized class (i.e. template class / class template) is not a class? christopher diggins C++ 16 05-04-2005 12:26 AM



Advertisments