私はそのaspxコードがどこにある2人のdropdowmlistsを持っています
<asp:DropDownList ID="ddlexpyear" runat="server" Width="50px" TabIndex="4"
DataTextField="" DataValueField="" AppendDataBoundItems="true"
ValidationGroup="userinfo" DataSourceID="objectdatasource1"
onselectedindexchanged="ddlexpyear_SelectedIndexChanged">
<asp:ListItem Value="-1">--- Please select ---</asp:ListItem>
</asp:DropDownList>
<asp:Label ID="Label4" runat="server" Text="(Year)"></asp:Label>
<asp:DropDownList ID="ddlexpmonth" runat="server"
AppendDataBoundItems="true" DataSourceID="objectdatasource2"
DataTextField="" DataValueField="" TabIndex="4"
ValidationGroup="userinfo" Width="50px"
onselectedindexchanged="ddlexpmonth_SelectedIndexChanged">
<asp:ListItem Value="0">--- Please select ---</asp:ListItem>
</asp:DropDownList>
<asp:Label ID="Label5" runat="server" Text="(Month)"></asp:Label>
<sup style="color: Red;">*</sup> </td>
ここで私が選択year as 2
した場合、 month as 5
私はwant to save it as 2.5
。そして、iiが選択しyear as 3
、month as 9
iwant to save it as 3.9
が好きなら。
これを解決するのを手伝ってください。
良い提案はかなりあります。