私は2日間で最も多くの時間を費やして、「2つのドロップダウンリストを2倍」してラベルに表示する方法を理解しようとしています...
数学のように、2 つの数字を掛け合わせるとき..
助けてください...
すべての提案を歓迎します
Protected void Button1_Click(object sender, EventArgs e)
{
int amount1 = int.parse(DropDownList1.selectedValue.ToString());
int amount2 = int.parse(DropDownList1.selectedValue.ToString());
Label.Text = amount1 * amount2;
}
エラーが発生します:
タイプ 'Int' を 'string' に暗黙的に変換することはできません