我有点问题。 如何选择值为id的值?
这是我的代码:
string actionId = new MyRptSubReportEntity().GetReportAction(this.SubReportId).ToString();
if (actionId == "0") actionId = "4";
// this.drpActionList.SelectedIndex =int.Parse(actionId);
this.drpActionList.SelectedValue = actionId;
但它不起作用。 Actionid来自数据库。
感谢您的回答。 约翰