<FooterTemplate>
<asp:TextBox ID="txtSName" runat="server" Text=""/>
</FooterTemplate>
代码隐藏代码如下:
TextBox txtName = (TextBox)(GridView1.FooterRow.FindControl("txtSName"));
string aa=txtName.Text;
每次aa
都是null
。
我将这段代码放入以下内容:
protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
{
}
请帮我..........