title: Multiple asp:Repeater DataBind
body: <p>I am 90% certain I have acheived this before, but I cannot remember how I did it.</p>
  
  <p>I have a repeater which I would like to use twice on a page as the structure and databinding events are the same, but the data binding to the repeater is obviously different.</p>
  
  <p>In the past I believe I set the datasource on the repeater then databinded, and then did the same again but with another datasource, so effectively:</p>
  
  <pre><code>MyRepeater.DataSource = DataSourceOne;
  MyRepeater.DataBind();
  MyRepeater.DataSource = DataSourceTwo;
  MyRepeater.DataBind();
  </code></pre>
  
  <p>Now this would have produced the html twice on the page. In this instance two lists, with different data contained inside of them.</p>
  
  <p>Thinking about it, it could possibly the <em>type</em> of datasource used. Before it might of been a dataset/table I was binding to the repeater, but this time I am using an ArrayList.</p>
  
  <pre><code>ArrayList Items = new ArrayList();
  Items = this.GetMenu(this._ProductsPageID);
  this.rep_ProductsPortfolio.ItemDataBound += new RepeaterItemEventHandler(ProdPortItemDataBound);
  this.rep_ProductsPortfolio.DataSource = Items;
  this.rep_ProductsPortfolio.DataBind();
  
  // Get portfolio
  Items = this.GetMenu(this._PortfolioPageID);
  this.rep_ProductsPortfolio.ItemDataBound += new RepeaterItemEventHandler(ProdPortItemDataBound);
  this.rep_ProductsPortfolio.DataSource = Items;
  this.rep_ProductsPortfolio.DataBind();
  </code></pre>
  
  <p>I have also tried using a different ArrayList for each repeater, but that didn't work either.</p>
  
  <p>At the moment all that happens is the second databind is rebinding over the old repeater and I only have one on the page.</p>
  
  <p>Any ideas?
  Thanks in advance</p>