C#:怎么在后台获取Gridview中<asp:TemplateField >中的控件?急。想获取chkAll和chkCurrent。
C#:怎么在后台获取Gridview中<asp:TemplateField>中的控件?<asp:GridViewID="gvAppNot"runat="server"Au...
C#:怎么在后台获取Gridview中<asp:TemplateField >中的控件?
<asp:GridView ID="gvAppNot" runat="server" AutoGenerateColumns="False">
<Columns>
<asp:TemplateField >
<HeaderTemplate>
<asp:CheckBox ID="chkAll" runat="server" AutoPostBack="True" Visible="false" />
</HeaderTemplate>
<ItemTemplate>
<asp:CheckBox ID="chkCurrent" runat="server" Visible="false" />
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="APPID" HeaderText="审批ID" />
<asp:BoundField DataField="FLOWID" HeaderText="流程ID" /> 展开
<asp:GridView ID="gvAppNot" runat="server" AutoGenerateColumns="False">
<Columns>
<asp:TemplateField >
<HeaderTemplate>
<asp:CheckBox ID="chkAll" runat="server" AutoPostBack="True" Visible="false" />
</HeaderTemplate>
<ItemTemplate>
<asp:CheckBox ID="chkCurrent" runat="server" Visible="false" />
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="APPID" HeaderText="审批ID" />
<asp:BoundField DataField="FLOWID" HeaderText="流程ID" /> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询