Razor MVC get select option ID for SQL statement
<p>I'm trying to submit a simple form with razor, needing the </p>

<pre><code>&lt;select&gt;
   &lt;option id=""&gt; //this is what i neeed to perform an insert &gt;
   &lt;/option&gt;
&lt;/select&gt;
</code></pre>

<p>my razor syntax is as follows:</p>

<pre><code>@Html.DropDownListFor(model =&gt; model.aPracticar.Value, actividades , "Seleccione la actividad" ,new { @class="form-control" })
</code></pre>

<p>The value itself will not do since i neeed to perform sql joins and i dont know how to obtain that id via razor. Any help will be greatly appreciated. Thanks!!</p>

<p>EDIT:</p>

<p>Sory for the late update. Found a relatively simple workaround since i had to utilize the ids instead of the values in the select list for a Javascript function. I am fully aware that this may not a correct usage of razor but proved effective in contrast to rewriting an entire model/view/controller </p>

<pre><code>    &lt;div class="editor-label"&gt;
     @Html.LabelFor(model =&gt; model.aPracticar.Value, "Actividad")
    &lt;/div&gt;
    &lt;div class="editor-field"&gt;
        &lt;select class="form-control" id="aPracticar_Value" &gt;                
            &lt;option value=""&gt;Seleccione la actividad...&lt;/option&gt;
             @foreach (var actividad in actividades)
             {  
                &lt;option id="@actividad.idDeporte" value="@actividad.Value"&gt;
                          @actividad.Text&lt;/option&gt;

         }                                   
    &lt;/select&gt;
     @Html.HiddenFor(u =&gt; u.aPracticar.idDeporte)
     &lt;br /&gt;
 &lt;/div&gt;
</code></pre>

<p>However, I'm marking one of the answers below as correct since it's an example of the intended usage of Razor. Thanks again everyone for the useful comments.</p>