C#: Input string was not in a correct format
<p>I always get the following error:
"Input string was not in a correct format."</p>

<p>when I try to convert a string from a label to an integer. I am sure that there is a string in the label. This is my code</p>

<p>C#</p>

<pre><code>protected void btnBestel_Click1(object sender, EventArgs e)
{

    bestelling = new OrderBO();
    bestelling.Adress = txtAdress.Text;
    bestelling.Amount = Int32.Parse(lblAmount.Text);
    bestelling.BookID = bookID;

}
</code></pre>

<p>.aspx</p>

<pre><code>&lt;table width="650"&gt;
    &lt;tr class="txtBox"&gt;
        &lt;td&gt;
            Boek
        &lt;/td&gt;
        &lt;td&gt;
            Prijs
        &lt;/td&gt;
        &lt;td&gt;
            Aantal
        &lt;/td&gt;
        &lt;td&gt;
            Korting
        &lt;/td&gt;
        &lt;td&gt;
            Totale Prijs
        &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;
            &lt;asp:Label ID="lblTitelBestel" runat="server" Text="" /&gt;
        &lt;/td&gt;
        &lt;td&gt;
            &lt;asp:Label ID="lblPriceBestel" runat="server" Text="" /&gt;
        &lt;/td&gt;
        &lt;td&gt;
            &lt;asp:TextBox ID="txtAdress" runat="server" Text="Belgium" /&gt;
        &lt;/td&gt;
        &lt;td&gt;
            &lt;asp:Label ID="lblKorting" runat="server" Text="-10%" /&gt;
        &lt;/td&gt;
        &lt;td&gt;
            &lt;asp:Label ID="lblAmount" runat="server" Text="20"/&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;
</code></pre>

<p>I also tried Convert.ToInt32(lblAmount.Text);</p>

<p>What am I doing wrong?</p>

<p>Thanks, 
Vincent</p>
