N
nasirmajor
Dear all,
a simple quetion as usual
I have a html select list. e.g
<select class="text" name="bmonth" runat="server" id="bmonth">
<option selected="selected"
value="0"></option>
<option value="1">January</option>
<option value="2">February</option>
<option value="3">March</option>
<option value="4">April</option>
<option value="5">May</option>
<option value="6">June</option>
<option value="7">July</option>
<option value="8">August</option>
<option value="9">September</option>
<option value="10">October</option>
<option value="11">November</option>
<option value="12">December</option>
</select>
and sql database in which i want to save the text of the selected month
from this html select control. like
co.Parameters.Add(new SqlParameter("@month", SqlDbType.VarChar,
50));
co.Parameters["@month"].Value = bmonth.????????? ;
^
what should come inplase of ???????????
drop down list works fine with dropdownlistname.selecteditem.text;
but how this should be done with html select.
thanks in advance
a simple quetion as usual
I have a html select list. e.g
<select class="text" name="bmonth" runat="server" id="bmonth">
<option selected="selected"
value="0"></option>
<option value="1">January</option>
<option value="2">February</option>
<option value="3">March</option>
<option value="4">April</option>
<option value="5">May</option>
<option value="6">June</option>
<option value="7">July</option>
<option value="8">August</option>
<option value="9">September</option>
<option value="10">October</option>
<option value="11">November</option>
<option value="12">December</option>
</select>
and sql database in which i want to save the text of the selected month
from this html select control. like
co.Parameters.Add(new SqlParameter("@month", SqlDbType.VarChar,
50));
co.Parameters["@month"].Value = bmonth.????????? ;
^
what should come inplase of ???????????
drop down list works fine with dropdownlistname.selecteditem.text;
but how this should be done with html select.
thanks in advance