SQL Database Conenction Class
Posted on 2006-11-07
I am trying to learn more about OOP. I am trying to create a Database Connection Class. I have created other classes and methods, but this one is giving me great trouble for some reason.
I have code in the .cs file that currently works fine to open and close the connection. But that conenction method is written on each and every page. As we all know, that is not a good thing.
A sample of code or a place to find the answer would be greatly appreciated.