日期:2014-05-18 浏览次数:20496 次
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>无标题页</title>
<script language="javascript" type="text/javascript">
function Isdel()
{
if(form1.DropDownList1.options[form1.DropDownList1.selectedIndex].value=="删除")
{
return confirm("确定删除吗?");
}
else
{
return true;
}
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:DropDownList ID="DropDownList1" runat="server">
<asp:ListItem Selected="True">增加</asp:ListItem>
<asp:ListItem>删除</asp:ListItem>
<asp:ListItem>修改</asp:ListItem>
</asp:DropDownList>
<asp:Button ID="Button1" runat="server" Text="Button" /></div>
</form>
</body>
</html>
------解决方案--------------------