BigTypeId = int.Parse(DropDownList1.SelectedValue);
抛出错误:Input string was not in a correct format。
只要检查一下里面的值就OK
int.TryParse(DropDownList1.SelectedValue, out BigTypeId);
BigTypeId = int.Parse(DropDownList1.SelectedValue);
抛出错误:Input string was not in a correct format。
只要检查一下里面的值就OK
int.TryParse(DropDownList1.SelectedValue, out BigTypeId);