Beispiel #1
0
        protected void btnSave_Click(object sender, EventArgs e)
        {
            UserProfileBLL bll = new UserProfileBLL();

            if (hfSelectedExtPropID.Value != "-1")
            {
                //更新记录
                //DBManager.UpdateExtPropById(hfSelectedExtPropID.Value, txtProName.Text, txtProDes.Text, txtProCom.Text);
                bll.UpdateExtPropById(hfSelectedExtPropID.Value, txtProName.Text, txtProDes.Text, txtProCom.Text);
            }
            else
            {
                //添加记录
                //DBManager.AddExtProp(txtProName.Text, txtProDes.Text, txtProCom.Text, Page.User.Identity.Name);
                bll.AddExtProp(txtProName.Text, txtProDes.Text, txtProCom.Text);
            }
            BindData();
        }