DropDownListr问题
各位大侠:
你们好!谁能告诉我,在DropDownList中如何将选中的值转换成数值类型呢?
就是说如果有一个DropDownList:
<asp:dropdownlist id="DropDownList1" runat="server" AutoPostBack="True">
<asp:ListItem >1</asp:ListItem>
<asp:ListItem >2</asp:ListItem>
</asp:dropdownlist>
我如果在后台写代码将用户选中的值变成数值来判断该显示几号文件的内容?
谢谢!