title: how to cache data repository in asp.net?
body: <p>I just wonder how to cache my data repository I mean there are some data repositories in my project they are so useful and I have to call their method several times so I need some tools or maybe patterns to cache them on the client to avoid get extra and duplicate queries.</p>
  
  <pre><code>&lt;asp:DropDownList ID="Dropdownlist1" runat="server" DataTextField="DataTextField" DataValueField="Key"&gt;
  &lt;/asp:DropDownList&gt;
  
  Dropdownlist1.DataSource = dbContext.EntityTest1;
  Dropdownlist1.DataBind();
  </code></pre>
  
  <p>For each running the page or web application whenever I use this control it makes an executable linq query and caching data from sql server then transfer them to client but in fact it is unnecessary.</p>
  
  <p>I think there are two different caching server side between sql server and application to avoid extra fetching data. and second caching client side between my application and client.</p>
  
  <p>What is the best solution for caching ? and is there any sample project to explain both of them ?</p>