<asp:TemplateField HeaderText="权限"> <EditItemTemplate><asp:DropDownList ID="dropIfAdmin2" runat="server">
<asp:ListItem Value="1" Text="管理员">
</asp:ListItem><asp:ListItem Value="0" Text="用户">
</asp:ListItem>
</asp:DropDownList>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Bind("IfAdmin") %>'></asp:Label>
</ItemTemplate> <ItemStyle HorizontalAlign="Center" />
</asp:TemplateField>如题求解释
<asp:ListItem Value="1" Text="管理员">
</asp:ListItem><asp:ListItem Value="0" Text="用户">
</asp:ListItem>
</asp:DropDownList>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Bind("IfAdmin") %>'></asp:Label>
</ItemTemplate> <ItemStyle HorizontalAlign="Center" />
</asp:TemplateField>如题求解释
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货