阅读背景:

如何通过显示文本在ASP.NET下拉列表中设置所选项?

来源:互联网 

I have an ASP.NET dropdown that I've filled via databinding. I have the text that matches the display text for the listitem I want to be selected. I obviously can't use SelectedText (getter only) and I don't know the index, so I can't use SelectedIndex. I currently am selecting the item by iterating through the entire list, as show below:I have an ASP.NET dropdown that I've filled via




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: