*DropDownList使用*
---------------------------------------------------------------------------------------------------
*DropDownList使用*
前台:
<asp:DropDownList id="OpMenu" style="Z-INDEX: 114; LEFT: 8px; POSITION: absolute; TOP: 296px" runat="server"Width="72px" Height="40px">
<asp:ListItem Value=0>Insert</asp:ListItem>
<asp:ListItem Value=1>Delete</asp:ListItem>
</asp:DropDownList>
后台:
if(OpMenu.SelectedIndex==1)//如果选中第2个项目
DeleteDB();
---------------------------------------------------------------------------------------------------
*DropDownList使用*
前台:
<asp:DropDownList id="OpMenu" style="Z-INDEX: 114; LEFT: 8px; POSITION: absolute; TOP: 296px" runat="server"Width="72px" Height="40px">
<asp:ListItem Value=0>Insert</asp:ListItem>
<asp:ListItem Value=1>Delete</asp:ListItem>
</asp:DropDownList>
后台:
if(OpMenu.SelectedIndex==1)//如果选中第2个项目
DeleteDB();
---------------------------------------------------------------------------------------------------