I'm new to web development and am making a mini project on a simple social networking site.
I'm using ASP.NET with C# & SQL Server 2008 Express.
I've read articles on how one should aim to create a data access layer (DAL) for the database to be used. One method is to create strongly typed datasets & adapters via the designer tools provided by Visual Web Developer.
So, I've created this strongly typed stuff, so this is my DAL. I've also read articles on having a Business Logic Layer(BLL), but for this project, I want to forgo this layer and work directly with the DAL through my website code.
Then, I've read about how it's not wise to store datasets in Session variables. My first impressions were that, after login, I could create an instance of my strongly typed dataset, populate it, then store it in a session object for use across various pages.
So, how should I go about it? Should I create and populate my dataset instance on each page access? Should I call Update() on each page exit?
Pardon me if I look like I'm feeling around in the dark, but I am confused... even after lots of searching.
EDIT: For those interested in details, I posted a comment, but decided to include it here as well:
But this is a relatively tiny website. Registration, login, friends invitation & friends list, friend messages, profile pages. That's all. Also, this is going to be the only website I develop for a long while which is why I don't want to get TOO caught up in awesome practices