前台
<asp:DropDownList ID="ddl" runat="server" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
<asp:ListItem>1</asp:ListItem>
<asp:ListItem>2</asp:ListItem>
<asp:ListItem>3</asp:ListItem>
</asp:DropDownList>
后台怎么写呢?参数e后面怎么点不出东西啊
不是应该会有.Item的吗?怎么我点不出来啊
FindControl拿不到数据了
<asp:DropDownList ID="ddl" runat="server" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
<asp:ListItem>1</asp:ListItem>
<asp:ListItem>2</asp:ListItem>
<asp:ListItem>3</asp:ListItem>
</asp:DropDownList>
后台怎么写呢?参数e后面怎么点不出东西啊
不是应该会有.Item的吗?怎么我点不出来啊
FindControl拿不到数据了
例如选择2了
前台中还有个Button
点Button之后拿到2这个值
该怎么写啊
单独的一个DropDownList
说白了我就是想要后台的代码
拿DropDownList中ListItem项的值
http;//www.google.com
http://www.baidu.com
都可以找到你要的答案的