Connecting to database from class

Discussion in 'ASP .Net Web Controls' started by RedRed, Mar 5, 2005.

  1. RedRed

    RedRed Guest

    Hi all,

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

    Thanks
     
    RedRed, Mar 5, 2005
    #1
    1. Advertising

  2. RedRed

    MasterGaurav Guest

    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
    ----------------------
     
    MasterGaurav, Mar 6, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Tom Wild
    Replies:
    0
    Views:
    6,725
    Tom Wild
    Aug 14, 2003
  2. Tom Wild
    Replies:
    1
    Views:
    10,968
    Kevin Swarts
    Aug 25, 2003
  3. =?Utf-8?B?ZWoxMDA4?=
    Replies:
    10
    Views:
    583
    =?Utf-8?B?VmFuaQ==?=
    Jul 2, 2004
  4. Ammar
    Replies:
    2
    Views:
    304
    Ammar
    Jul 8, 2004
  5. E11
    Replies:
    1
    Views:
    4,844
    Thomas Weidenfeller
    Oct 12, 2005
Loading...

Share This Page