asp.net 页面下拉框数据绑定

 <asp:DropDownList ID="ddl_select"  runat="server" DataTextField="Name" DataValueField="ID" Width="100%"/>

报错
Object of type 'System.String' cannot be converted to type 'System.Int32'.

是否是由于ID是int 类型,要怎么修改 ?

应该不是id是int类型的问题,你断点一下

和绑定没关系吧,感觉是你获取值的时候进行转换导致报错的,字符串无法转为数字