title: How to select Listbox value in asp.net
body: <p>I have a ListBox in my webpage that is bound from database in this way:</p>
  
  <pre><code>    ListBox1.DataTextField = "Text";
      ListBox1.DataValueField = "MenuID";
      ListBox1.DataSource = SqlHelper.ExecuteReader(DAL.DALBase.ConnectionString, "GetMenu");
      ListBox1.DataBind();
  </code></pre>
  
  <p>I want to get selected item value and used this code but have a error and does not worked.</p>
  
  <pre><code>ListBox1.SelectedValue;
  </code></pre>
  
  <p>Forgive me if I have problems on how to write because my English is not good.</p>