Simply just divide your application in three tiers as
1. Presentation Layer
Which will contain all the thing which makes your project to be presented from front side all types of css,Skins,Controls you have used etc.
2.Business Layer
Which ensures that the data inserted in your presentation side is Valid upto.Use all kind of business validation here.
3.Data Layer
All the data related task weather connecting to database and retrieving any data values.
You could have
THIS[
^] Link to be useful for further information.
Please
vote and
Accept Answer if it Helped.