Beispiel #1
0
        public void btnSave_Click(object sender, EventArgs e)
        {
            int    EID             = int.Parse(this.txtEID.Text);
            string ExpeDescription = this.txtExpeDescription.Text;
            string ExpeAddDate     = this.txtExpeAddDate.Text;
            string ExpeName        = this.txtExpeName.Text;
            string ExpePhone       = this.txtExpePhone.Text;
            string ExpePicURL      = this.txtExpePicURL.Text;
            int    UID             = int.Parse(Session["UID"].ToString());


            CHSS.Model.CExpert model = new CHSS.Model.CExpert();
            model.EID             = EID;
            model.ExpeDescription = ExpeDescription;
            model.ExpeAddDate     = ExpeAddDate;
            model.ExpeName        = ExpeName;
            model.ExpePhone       = ExpePhone;
            model.ExpePicURL      = ExpePicURL;
            model.UID             = UID;

            CHSS.BLL.CExpert bll = new CHSS.BLL.CExpert();
            bll.Update(model);
            Response.Redirect("Show.aspx?id=" + EID);
        }