用户配置好如下图的复选框,动态添加复选框。
前台代码:
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<link href="../css/color.css" rel="stylesheet" type="text/css" />
<link href="../css/Add.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.auto-style1 {
width: 459px;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div class="location">
当前位置:设置->:下拉框字段
</div>
<table style="width: 100%;" cellpadding="6" cellspacing="1" class="border">
<tr>
<td align="center" class="auto-style1">
<asp:DropDownList ID="ddlMenuIndex" runat="server" style="margin-left: 40px" Height="20px" Width="140px">
</asp:DropDownList>
<asp:DropDownList ID="ddlFields" runat="server" style="margin-left: 60px" Height="20px" Width="140px" OnSelectedIndexChanged="ddlFields_SelectedIndexChanged" AutoPostBack="True">
</asp:DropDownList>