title: Input string was not in a correct format visual basic 2010
body: <pre><code>    int VoltageTypeID = Int32.Parse(ddlVoltageType.SelectedValue);
  
      if (VoltageTypeID == 1)
      {
          lblApplicationType.Visible = false;
          lbldoubledot4.Visible = false;
          ddlApplicationType.Visible = false;
      }
      else
      {
          lblApplicationType.Visible = true;
          lbldoubledot4.Visible = true;
          ddlApplicationType.Visible = true;
      }
  </code></pre>
  
  <p><code>int VoltageTypeID = Int32.Parse(ddlVoltageType.SelectedValue)</code> (this is the format error)</p>