title: How to convert value of aspx combobox selected item to int?
body: <p>I know it is very basic but I failed.</p>
  
  <pre><code>public static int devId;
  protected void Page_Load(object sender, EventArgs e) { }
  </code></pre>
  
  <p>It is working ! I set value static </p>
  
  <pre><code>protected void btn2_Click(object sender, EventArgs e)
  {
      devId = 325283298;  
  }
  </code></pre>
  
  <p>It is not working ! </p>
  
  <pre><code>protected void btn2_Click(object sender, EventArgs e)
  {
      devId = int.Parse(cmbDealer.SelectedItem.Value.ToString());
  }
  
  &lt;dx:ASPxComboBox ID="cmbDealer" runat="server" TextField="FirmName" 
  
           ValueField="DeviceID" EnableSynchronization="False"  Width="130" 
  
           EnableIncrementalFiltering="True"   DataSourceID="lnqDealer1" 
  
            Theme="Youthful"&gt;
  
  &lt;/dx:ASPxComboBox&gt;
  </code></pre>