title: Handling Data Context in LINQ to SQL with ASP.NET web application
body: <p>I'm using Data context in my ASP.NET web application. </p>
  
  <pre><code> ComponentDBDataClassesDataContext db = new ComponentDBDataClassesDataContext();
   int ifUserExists = (from result in db.Customers where (userName == result.UserName) &amp;&amp; (password == result.Password) select result.UserName).Count();
  </code></pre>
  
  <p>Should I close the data context every time i use it ? If so why should I close it ? If it should not be closed why ?</p>
  
  <p>Can some one give me some elaborate and clear explanation?</p>
  
  <p>Thank you in anticipation</p>