请问我这句代码有什么错吗,一点击 提交 就 无法显示网页。foreach (GridViewRow row in GridView1.Rows)
        {
            if (row.RowType == DataControlRowType.DataRow)
            {
                CwGoods cg = new CwGoods();
                cg.CwGoodName = ((TextBox)row.Cells[0].FindControl("TextBox1")).Text;
                cg.CwSumGood = Convert.ToDouble(((TextBox)row.Cells[1].FindControl("TextBox2")).Text.ToString());                int i = CwGoodsManager.AddCwGoods(cg);            }
        }