我的gridview中使用了FooterTemplate,如下代码:
请问如何获得FooterTemplate中的DropDownList4的值?
<FooterTemplate>
<asp:DropDownList ID="DropDownList4" runat="server">
<asp:ListItem>有</asp:ListItem>
<asp:ListItem>无</asp:ListItem>
</asp:DropDownList>
</FooterTemplate>
请问如何获得FooterTemplate中的DropDownList4的值?
<FooterTemplate>
<asp:DropDownList ID="DropDownList4" runat="server">
<asp:ListItem>有</asp:ListItem>
<asp:ListItem>无</asp:ListItem>
</asp:DropDownList>
</FooterTemplate>
DropDownList ddl = (DropDownList)footrow.FindControl("DropDownList4");