类型无法强制转换
提示的错误:无法将类型为“System.Web.UI.LiteralControl”的对象强制转换为类型“System.Web.UI.WebControls.TextBox”。string sqlcom = "update UF_FORUMFEN set
UF_FORUMFEN_NAME = '" + ((TextBox)(GridView1.Rows[e.RowIndex].Cells[0].Controls[0])).Text.ToString().Trim()
+ "',UF_FORUMFEN_ADDRESS = '" + ((TextBox)(GridView1.Rows[e.RowIndex].Cells[1].Controls[0])).Text.ToString().Trim() + "',
UF_FORUMFEN_BODY = '" + ((TextBox)(GridView1.Rows[e.RowIndex].Cells[3].Controls[0])).Text.ToString().Trim() + "' where UF_FRIENDLINK_ID = '"+GridView1.DataKeys[e.RowIndex].Value.ToString()+"'";
小弟初学 有很多地方不懂 希望高手指教






