Exemple #1
0
    //delete data
    protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
    {
        string        id    = this.GridView1.DataKeys[e.RowIndex].Value.ToString();
        ZX_InfoBU     info1 = new ZX_InfoBU();
        ZX_InfoReadBU info2 = new ZX_InfoReadBU();

        info1.DeleteData(id);
        this.BindData(info1);
        info2.DelDataByID(id);
        info1.Close();
        info2.Close();
    }