急:在Datagrid中无法读取文本框的值
在Datagrid的footertemplate中插入了一个TextBox(id为AID),却无法读取它的值。
public void Insert(object sender, System.Web.UI.WebControls.DataGridCommandEventArgs e)
{ TextBox addID;
if(e.CommandName=="Insert")
{
addID=(TextBox)e.Item.FindControl("AID");
txtSearch.Text=addID.Text;