public void BindComplainValues() { ComplainManagement objComplain = ComplainController.GetComplainById(Id); txtComplainCode.Text = objComplain.ComplainCode; txtComplainMsg.Text = objComplain.ComplainMessage; objComplain = new ComplainController().UpdateComplain(objComplain); }
protected void btnFeedback_Click(object sender, EventArgs e) { try { ComplainManagement objComplain = ComplainController.GetComplainById(Id); objComplain.Feedback = txtFeedback.Text; objComplain.Status = ddlStatus.SelectedItem.Text; objComplain = new ComplainController().UpdateComplain(objComplain); ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "succ_msg", "MessageBox('Success','Your Feedback Saved Successfully');", true); BindGrid(); } catch (Exception ex) { throw ex; } }