在ItemCommand中,取不到datagrid中模板列下的FooterTemplate的textbox的值。
如:c = CType(e.Item.Cells(2).FindControl("txtEail"), TextBox).Text
报错:未将对象引用设置到对象的实例。 怎么解决?