开发者

dropdown selected value

I have a little problem. How can I select value with value id?

this is my code:

string actionId = new MyRptSubReportEntity().GetReportAction(this.SubReportId).ToString();
if (actionId == "0") actionId = "4";
// this.drpActionList.SelectedIndex =int.Parse(actionId);
this.drpActionList.SelectedValue = actionId;

but it is not working. Actionid is coming from the database.

Thanks for your answers.开发者_如何转开发 John


dropdown.SelectedValue = value;

linky

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜