コード例 #1
0
        protected void btnDelete_Click(object sender, EventArgs e)
        {
            DirModel dml     = new DirModel();
            string   strText = ddlType.SelectedItem.Text;

            dml.Add("@producttype_id", ddlType.SelectedValue);
            if (pagelogic.DeleteProductType(dml))
            {
                AlertMessage("删除" + strText + "成功!");
            }
            else
            {
                AlertMessage("删除" + strText + "失败!");
            }
            BindType();
        }