예제 #1
0
        protected void btnDDelete_Click(object sender, EventArgs e)
        {
            int count = 0;

            getSconn();
            _bll = new ToolBll(Session["sConn"].ToString());
            if (_bll.deleteViewData(getAbsoluteTableName(hidSchemasName.Value, hidTablesName.Value), ddlUpdateFiled.SelectedValue, txtUpdateHWhere.Text, out count))
            {
                labUpdate.Text          = count + "条数据成功删除!";
                litDetail.Text          = _bll.getTableCount(getAbsoluteTableName(hidSchemasName.Value, hidTablesName.Value));
                Timer1.Enabled          = true;
                panUpdateButton.Visible = gdUpdateView.Visible = false;
            }
            else
            {
                labUpdate.Text = "删除失败!";
                Timer1.Enabled = true;
            }
        }