title: 'Input string not in correct format' Error
body: <p>I have a DropDownList with values that I get from a SQL database. Depending on the selection made from the DropDownList, I populate a GridView, also from a SQL database. </p>
  
  <p>When I set AutoPostBack=true on the DropDownList I get a 'Input string not in correct format' error. </p>
  
  <p>My DropDownList:</p>
  
  <pre><code>&lt;html&gt;
   &lt;asp:DropDownList ID="ddlClient" runat="server" DataSourceID="dsClientList"                        AppendDataBoundItems="True" DataTextField="Name" DataValueField="Name" TabIndex="0" Font-Names="Verdana" Font-Size="11px" ForeColor="#2D2D2D" AutoPostBack="true"&gt;
          &lt;asp:ListItem Value=""&gt;--- Select ---&lt;/asp:ListItem&gt;
    &lt;/asp:DropDownList&gt;
    &lt;asp:ObjectDataSource ID="dsClientList" runat="server" SelectMethod="GetList" TypeName="Class.Client"&gt;
    &lt;/asp:ObjectDataSource&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>In my ObjectDataSource for my GridView I use the following SelectParameters:</p>
  
  <p>
  <code>&lt;SelectParameters&gt;
  &lt;asp:ControlParameter ControlID="ddlClient" Name="pClientID" PropertyName="SelectedValue"
  Type="Int32" /&gt;
  &lt;/SelectParameters&gt;</code>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       </p>
  
  <p>Any help?</p>
  
  <p>Thanks</p>