摘要:
抛出的异常信息:异常详细信息:System.ArgumentOutOfRangeException: “ddlTotalCostDiscount ”有一个无效 SelectedValue,因为它不在项目列表中。原先给DropDownList这样赋值:this.ddlTotalCostDiscount.SelectedValue = obj.TotalCostDiscount.ToString();改成这样赋值:ddlTotalCostDiscount.SelectedIndex = ddlTotalCostDiscount.Items.IndexOf(ddlTotalCostDiscount. 阅读全文