How to get the value from dropdown in asp.net
<p>I am using dropdown in ASP.net to display image along with value</p>

<pre><code>&lt;asp:DropDownList ID="ddBanner" runat="server" CssClass="ddBanner"  &gt;
&lt;/asp:DropDownList&gt;
</code></pre>

<p>I used the following link to modify to my needs, i got it working. 
<a href="http://www.aspdotnet-suresh.com/2011/12/jquery-bind-images-to-dropdownlist-in.html" rel="nofollow">http://www.aspdotnet-suresh.com/2011/12/jquery-bind-images-to-dropdownlist-in.html</a></p>

<p>I need to get the dropdown value, which i am finding hard in my case. 
when i use ddBanner.SelectedValue or ddBanner.selectedItem or ddBanner.text it gets me "1.png" while i want the "1" to store in the database, below is the value after i run the webpage </p>

<pre><code>&lt;select id="MainContent_ddBanner" class="ddBanner" name="ctl00$MainContent$ddBanner"&gt;
&lt;option title="../ImagesBanners/1.png" value="1.png"&gt;1&lt;/option&gt;
&lt;option title="../ImagesBanners/2.png" value="2.png"&gt;3&lt;/option&gt;
&lt;option title="../ImagesBanners/3.png" value="3.png"&gt;6&lt;/option&gt;
&lt;/select&gt;
</code></pre>

<p>What should i do to get the  "1" or "2" from the drop down. i also need to pre select the value store in data base when i am update the same data . </p>

<p>data Example:
<strong>PageTable</strong>
PageName, PageTitle, PageBannerID
Home ,    Welcome to our site, 1</p>

<p>Banner table</p>

<p>BannerID, BannerImage</p>

<p>1, 1.png
2, b.png
3, 3.png</p>
