的例外是: 「國家」具有的SelectedValue,因爲它不在項目列表中存在哪些無效。 參數名:價值的SelectedValue是無效的 - 在列表不存在 - C#/ ASP.NET
UserService.DsUserAttributes dsCountry = us_service.GetUserAttributeDropDown(systemId, "Country");
Country.DataSource = dsCountry.tblDropDownValues;
Country.DataTextField = "AttrValue";
Country.DataValueField = "Id";
Country.DataBind();
dsCountry.tblDropDownValues內保存的值被:
Id AttrValue AttrName
aefa28e0-a118-11dd-ad8b-080c210c9a66 PLEASE SELECT Country
213a743e-ea0b-419c-bd44-03b1c35241b3 USA Country
eefa1387-8dc0-11d8-975f-13da67a41a5d CANADA Country