title: ASP.net web form access database using javascript instead of C#
body: <p>I have an online shopping application where I have product categories. I have the following method to retrieve the categories from the database and it is written in C#.</p>
  
  <pre><code>public IQueryable&lt;Category&gt; GetProductCategories()
      {
          var _db = new BundleShop.Models.ProductContext();
          IQueryable&lt;Category&gt; query = _db.Categories;
          return query;
      }
  </code></pre>
  
  <p>Can anybody give me a hand writing the same code in javascript?</p>