开发者

dropdown selected value

开发者 https://www.devze.com 2023-01-19 21:26 出处:网络
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();

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

精彩评论

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

关注公众号