title: How to create class library for asp.net
body: <p>I am new to ASP.NET. I have a general idea with ASP.NET on how to create a web application? But Here, I am asking the question because I want to apply best practice for my coding. So, I want to separate conceptual layers, for example, I want to create function which check session on <code>page_load</code>, if its empty than redirect to default page. I can do this by copy-paste to each new page.but I would like to call function rather than doing Copy/Paste. </p>
  
  <p>I am thinking of creating library for Data Access as well as to connect and do data manipulations. Is it possible?</p>
  
  <p><strong>I just found this article from googling : <a href="http://www.simple-talk.com/dotnet/.net-framework/.net-application-architecture-the-data-access-layer/&amp;ei=apHFT-yAMImOiAfR5szqAg&amp;usg=AFQjCNHYqAt7BW8HKLd_88-1ltqxmNAIrQ&amp;cad=rja" rel="nofollow"> Application Archi... </a></strong></p>
  
  <p>Can I use this concept?</p>