title: Refreshing ListView in asp:webform using UpdatePanel
body: <p>I have a listview that I want to update every 5 seconds or so, the update panel does refresh but to no effect.</p>
  
  <pre><code>&lt;asp:Timer runat="server" ID="UP_Timer" Interval="5000" /&gt;
  
  &lt;asp:UpdatePanel runat="server" ID="Proc_UpdatePanel"&gt;
      &lt;ContentTemplate&gt;
          &lt;asp:ListView ID="ListView1" runat="server"
              DataKeyNames="procName"
              ItemType="SerMon.RemoteProcess" SelectMethod="fetchFromQueue"&gt;
              &lt;EmptyDataTemplate&gt;
                  &lt;table&gt;
                      &lt;tr&gt;
                          &lt;td&gt;No data was returned.&lt;/td&gt;
                      &lt;/tr&gt;
                  &lt;/table&gt;
              &lt;/EmptyDataTemplate&gt;
              &lt;EmptyItemTemplate&gt;
                  &lt;td /&gt;
              &lt;/EmptyItemTemplate&gt;
              &lt;LayoutTemplate&gt;
                  &lt;table runat="server" id="table1" class="table table-striped table-hover "&gt;
                      &lt;thead&gt;
                          &lt;tr runat="server"&gt;
                              &lt;th&gt;#&lt;/th&gt;
                              &lt;th&gt;Process&lt;/th&gt;
                              &lt;th&gt;Status&lt;/th&gt;
                              &lt;th&gt;Machine&lt;/th&gt;
                          &lt;/tr&gt;
                          &lt;tr id="itemPlaceholder" runat="server"&gt;&lt;/tr&gt;
                      &lt;/thead&gt;
                  &lt;/table&gt;
              &lt;/LayoutTemplate&gt;
              &lt;ItemTemplate&gt;
                  &lt;tr runat="server"&gt;
                      &lt;td&gt;1&lt;/td&gt;
                      &lt;td&gt;
                          &lt;asp:Label runat="server" ID="lblId"&gt;&lt;%#: Item.ProcName%&gt;&lt;/asp:Label&gt;&lt;/td&gt;
                      &lt;td&gt;
                          &lt;asp:Label runat="server" ID="Label1"&gt;&lt;%#: Item.Procstatus%&gt;&lt;/asp:Label&gt;&lt;/td&gt;
                      &lt;td&gt;
                          &lt;asp:Label runat="server" ID="Label2"&gt;&lt;%#: Item.mcName%&gt;&lt;/asp:Label&gt;&lt;/td&gt;
                  &lt;/tr&gt;
              &lt;/ItemTemplate&gt;
          &lt;/asp:ListView&gt;
      &lt;/ContentTemplate&gt;
  &lt;/asp:UpdatePanel&gt;
  </code></pre>
  
  <p>The whole page refreshes, yet the method to be called for populating the listview is not called. Where am I going wrong?</p>