title: How do I do this in ASP.net?
body: <p>I want to implement a shopping basket.</p>
  
  <p>I created a shopping basket class, and included all the functions inside it that basket will need.</p>
  
  <p>It works OK, but on every content page I need the lines:</p>
  
  <pre><code>Basket myBasket = new Basket();
  myBasket.drawBasket();
  </code></pre>
  
  <p>Is there anyway to get that code to execute on every page without having to manually create the class and run it?  Perhaps not use classes?</p>