顶,我的代码string DocId = this.DocId.Text.ToString();
        string Name = this.Name.Text.ToString();
        string sql = "insert into tt_Type (DocId,Name) values ('" + DocId + "','" + Name + "')";
        SQLHelper dbsh = new SQLHelper();
        int count = dbsh.RunSQL(sql);
        if (count > 0)
        {
            Response.Write("<script>alert('插入成功!');</script>");        }
        else
        {
            Response.Write("<script>alert('插入失败!');</script>");
        }