DropDownList中的最大值 - ASP.NET

MSa*_*adi 1 c# asp.net max drop-down-menu

我怎样才能获得的最大值DropDownListASP.NETC#

有没有方法或我应该手动获取它?

ion*_*den 5

int maxValue = DropDownList1.Items.Cast<ListItem>().Select(item => int.Parse(item.Value)).Max();