Posted on: 4/12/2011 2:01:40 AM | Views : 331

Hi
I've been doing C# for a while, but I haven't used any custom classes yet (IE, classes I create myself)
So, can some one give me an example of WHY I'd use a class in this scenario:
I have 1 page on my website. It displays CD's. All the CD's are from a database. I connect using the DataSet/DataAdapter to a SQL database.
The display is simple. It only shows a datagridview with the list of CD's. Nothing else.
The CD information only needs to contain the artist name, album name and a price. These 3 items are held in 3 columns in the database.
So, this is a very simple set up and using this set up as an example, how could I use a custom class? Even if we have to add functionality to it, I just want to get used to using classes because my sites which do this (including counts/refine search options etc) don't use any.
 
Thanks
Dave
...

Go to the complete details ...