Object reference not set to an instance of object, help needed
<p>I have the code below </p>

<p>It throws an error <strong>"Object reference not set to an instance of object"</strong></p>

<pre><code>TextBox rateCenterName = (TextBox)row.FindControl("txtRateCenterName");
    cmd.Parameters.Add("@RateCenterName", OleDbType.VarChar).Value = rateCenterName.Text;
</code></pre>
