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
精彩评论