title: listview, datapager, objectdatasource not working in updatepanel
body: <p>When i change the page in datapager it causes full postback, even the datapager is working very abnormally, idont know what is the reason. by abnormaaly i mean sometime data is shown sometime doesnt,<br>
  Following is th my code in c#    </p>
  
  <pre><code>     protected void Page_Load(object sender, EventArgs e)
      {
          if (!IsPostBack)
          {
              BindListView();
          }           
      }
  
      protected void StudentListView_PagePropertiesChanging(object sender, PagePropertiesChangingEventArgs e)
      {
          BindListView();
      }
      private void BindListView()
      {
          StudentListView.DataSource = StudentDataSource;
          StudentListView.DataBind();
      }
  
      protected void StudentDataSource_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
      {
          e.Arguments.MaximumRows = StudentListDataPager.MaximumRows;
          e.Arguments.StartRowIndex = StudentListDataPager.StartRowIndex;
      }
  </code></pre>
  
  <p>Following is my markup      </p>
  
  <pre><code>    &lt;asp:UpdatePanel runat="server" UpdateMode="Conditional"&gt;
      &lt;ContentTemplate&gt;        &lt;
      &lt;asp:DropDownList runat="server" ID="BatchDropDownList" AutoPostBack="True"&gt;
          &lt;asp:ListItem Text="Batch 1" Value="1" Selected="True" /&gt;
          &lt;asp:ListItem Text="Batch 2" Value="2" /&gt;
      &lt;/asp:DropDownList&gt;
  
      &lt;asp:ListView ID="StudentListView" runat="server"       
          ItemPlaceholderID="ListViewContent" 
              EnableViewState="false" 
              onpagepropertieschanging="StudentListView_PagePropertiesChanging"&gt; 
          &lt;LayoutTemplate&gt; 
              &lt;table style="width:100%"&gt;
                  &lt;thead&gt;
                      &lt;tr&gt;
                          &lt;th class="align-left"&gt;&lt;strong&gt;Name&lt;/strong&gt;&lt;/th&gt;
                          &lt;th class="align-left"&gt;&lt;strong&gt;MobNo&lt;/strong&gt;&lt;/th&gt;
                      &lt;/tr&gt;
                  &lt;/thead&gt;
                  &lt;tbody runat="server" id="ListViewContent"&gt; 
                  &lt;/tbody&gt;
                  &lt;tfoot&gt;
                      &lt;tr&gt;
                          &lt;td colspan="3"&gt;
  
                          &lt;/td&gt;
                      &lt;/tr&gt;
                  &lt;/tfoot&gt;
              &lt;/table&gt;
  
          &lt;/LayoutTemplate&gt;  
          &lt;ItemTemplate&gt;  
  
              &lt;tr&gt;
                  &lt;td style="width:70%;"&gt;&lt;%# Eval("FirstName") %&gt;&amp;nbsp&lt;%# Eval("LastName") %&gt;&lt;/td&gt;
                  &lt;td style="width:30%;"&gt;&lt;%# Eval("MobNo") %&gt;&lt;/td&gt;                    
              &lt;/tr&gt;
  
          &lt;/ItemTemplate&gt;             
      &lt;/asp:ListView&gt;
      &lt;asp:DataPager ID="StudentListDataPager" runat="server" PageSize="5" PagedControlID="StudentListView"&gt;
          &lt;Fields&gt;
              &lt;asp:NumericPagerField /&gt;
          &lt;/Fields&gt;
      &lt;/asp:DataPager&gt;
  
  
      &lt;asp:ObjectDataSource ID="StudentDataSource" runat="server" 
          SelectMethod="GetStudentListBatchWise" SelectCountMethod="StudentCount" 
              TypeName="SCERPCommonUtil.Student" EnablePaging="True" 
              onselecting="StudentDataSource_Selecting"&gt;
          &lt;SelectParameters&gt;
              &lt;asp:ControlParameter Name="batchId" ControlID="BatchDropDownList" PropertyName="SelectedValue" /&gt;
          &lt;/SelectParameters&gt;
      &lt;/asp:ObjectDataSource&gt;
      &lt;/ContentTemplate&gt;
  &lt;/asp:UpdatePanel&gt;
  </code></pre>
  
  <p>Please tell me if i am making any mistakes.    </p>
  
  <p>P.S. : Please dont point me to any stackoverflow question as i have read all of them, and none is specific to my requirement,      </p>
  
  <p>Most important problem i am facing is that datapager is giving full postback, even if put <code>datapager</code> inside <code>updatepanel</code> same thing happens.</p>