title: asp:repeater items not clearing when new dataSource set
body: <p>I have a form in which I put one repeater control and bind it on pageLoad,it bind as expected. </p>
  
  <p>I have a <code>dropDownList</code>,  when I select a value from it  I want to clear the repeater <em>dataSource</em> and rebind it in <code>dropDown_SelectedIndexChanged</code> event handler on codebehind.</p>
  
  <p>I set the repeater datasource as null then rebind it with new datasource it wont reflect the changes, it display the first binded value.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>protected void Page_Load(object sender, EventArgs e)
  {
     if (IsPostBack)
          return;
  
     //Populate the drop down
     PopulateLocationDropdown();
  
     if (Request.QueryString["locationID"] != null)
     {
         int locationID=Request.QueryString["locationID"];
  
         //Clear repeater 
         rpt_Displaytheater.DataSource = null;
         rpt_Displaytheater.DataBind();
  
         //Rebind repeater
         rpt_Displaytheater.DataSource = GetTheaterDataSet(locationID);
         rpt_Displaytheater.DataBind();
     }
  }
  </code></pre>
  
  <p>When dropDown <em>selectionChanged</em> :</p>
  
  <pre><code>protected void ddlLocation_SelectedIndexChanged(object sender, EventArgs e)
  {
     int locationID=ddlLocation.SelectedValue.ToInt();
  
     //Clear repeater 
     rpt_Displaytheater.DataSource = null;
     rpt_Displaytheater.DataBind();
  
     //Rebind repeater
     rpt_Displaytheater.DataSource = GetTheaterDataSet(locationID);
     rpt_Displaytheater.DataBind();
  }
  </code></pre>
  
  <h2>Edit</h2>
  
  <p>here is my dropdown :</p>
  
  <pre><code>&lt;asp:DropDownList ID="ddlLocation" DataTextField="LocationName" DataValueField="Record_Id" runat="server" CssClass="textbox_230"
                                              OnSelectedIndexChanged="ddlLocation_SelectedIndexChanged" AutoPostBack="True"&gt;
                                          &lt;/asp:DropDownList&gt;
  </code></pre>
  
  <p>Here is my repeater :</p>
  
  <pre><code> &lt;asp:Repeater ID="rpt_Displaytheater" runat="server"
              OnItemCommand="rpt_Displaytheater_ItemCommand"&gt;
              &lt;ItemTemplate&gt;
                  &lt;div class="TheaterListing" style="background: #FFF;"&gt;
                      &lt;div class="TheaterName"&gt;
                          &lt;div class="Theaterhead"&gt;
                              &lt;asp:Label ID="lblTheaterID" runat="server" Visible="false" Text='&lt;%# DataBinder.Eval(Container.DataItem, "Record_Id") %&gt;'&gt;&lt;/asp:Label&gt;
                              &lt;asp:LinkButton ID="lnkbtnTheaterName" runat="server" Style="color: #000; font-weight: bold" Text='&lt;%# DataBinder.Eval(Container.DataItem, "Theatre_Name") %&gt;'&gt;&lt;/asp:LinkButton&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                      &lt;div class="showlist"&gt;
                          &lt;%-- show time repeater-Movies Tab --%&gt;
                          &lt;asp:Repeater ID="rpt_showtime" runat="server"&gt;
                              &lt;ItemTemplate&gt;
                                  &lt;ul style="padding-left: 10px; margin: -18px 0 0 163px;"&gt;
                                      &lt;li class="fl" style="font-weight: bold; padding-left: 8px;"&gt;
                                          &lt;asp:LinkButton ID="lnk_showtime" CommandName="Showtime" runat="server" CssClass="txtstyle1"
                                              Text='&lt;%# DataBinder.Eval(Container.DataItem, "Time_From") %&gt;'&gt;&lt;/asp:LinkButton&gt;
                                      &lt;/li&gt;
                                  &lt;/ul&gt;
                              &lt;/ItemTemplate&gt;
                          &lt;/asp:Repeater&gt;
                          &lt;%-- show time repeater-Movies Tab --%&gt;
                          &lt;%--&lt;asp:LinkButton ID="LinkButton1" runat="server" style="color: #000;font-weight:bold" Text="10.00 AM"&gt;&lt;/asp:LinkButton&gt;--%&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
  
                  &lt;br clear="all" /&gt;
              &lt;/ItemTemplate&gt;
          &lt;/asp:Repeater&gt;
  </code></pre>
  
  <p>My problem is when I reset repeater control's dataSource to new dataSource on dropDown selection changed but the changes is not reflected on the repeater it just show the first bounded values on page load whats wrong with my code</p>