Results 1 to 2 of 2

Thread: using a class for DBhandling - HELP

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Feb 2004
    Location
    in the heart of the Mediterranean
    Posts
    1,143

    using a class for DBhandling - HELP

    HI,

    I am new to ADO.NET. Well I know how to do a connection but someone has advised me to do a class where to put all my database handling. I have done a class that has a class as a parameter.

    Now my problem is how I will call this class from the form .

    Example my class in called DbHandling and has a Public Shared Add(By val pp as Personal) where personal is a class having field table related members.

    Now how do I associate the textbox.text with the field values in the DbHandling class??


    Hope made myself clear. any help please.

  2. #2
    Addicted Member rabid lemming's Avatar
    Join Date
    Feb 2005
    Posts
    210

    Re: using a class for DBhandling - HELP

    Use this on your page

    Public ConnectToMYClass as DbHandling = new DbHandling

    then to call a class function or sub use:

    ConnectToMYClass.Add(...)

    Hope that helps

    I will wait for death with a smile and a big stick

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