私は保険アプリのために構築しているドロップダウンリストがたくさんあります。各リストには、乗数の値が与えられた場合のオプションがいくつかあります。私の質問は、テキストボックス内の最終乗数値を得るために、別々のドロップダウンリストからこれらの値をどのように乗算できますか?私は、各ドロップダウンリストから選択された値を使用したい。私は約2週間をコードしているasp.netの2つのドロップダウンリストの値をどのように乗算して結果をテキストボックスに表示できますか?
<asp:DropDownList id="points" runat="server">
<asp:ListItem Value="1.00">0</asp:ListItem>
<asp:ListItem Value="1.05">1</asp:ListItem>
<asp:ListItem Value="1.10">2</asp:ListItem>
<asp:ListItem Value="1.18">3</asp:ListItem>
<asp:ListItem Value="1.25">4</asp:ListItem>
<asp:ListItem Value="1.32">5</asp:ListItem>
<asp:ListItem Value="1.40">6</asp:ListItem>
<asp:ListItem Value="1.47">7</asp:ListItem>
<asp:ListItem Value="1.55">8</asp:ListItem>
<asp:ListItem Value="1.62">9</asp:ListItem>
<asp:ListItem Value="1.70">10</asp:ListItem>
<asp:ListItem Value="1.77">11</asp:ListItem>
</asp:DropDownList>
<asp:DropDownList id="OtherPolicy" runat="server">
<asp:ListItem value="1.20">Yes</asp:ListItem>
<asp:ListItem value="1.00">No</asp:ListItem>
</asp:DropDownList>
を次のように
リストがフォーマットされているので、うまくいけば、誰かが正しい方向に私を指すことができます。私はここでの検索で似たようなものは見つかりませんでした。みんなありがとう!
私はこのプロジェクトでVisual Studio 2012を使用していますので、何でも使えます。 –