public void Update()
        {
            pnlNotes.Visible   = true;
            pnlNewNote.Visible = false;

            txtNote.Text = "";
            this.clearMessage();



            IncidentDS.IncidentNoteDSDataTable dt = BllProxyIncidentNote.GetAllIncidentNotes(this.incidentId);
            rptNote.DataSource = dt;
            rptNote.DataBind();


            if (dt.Rows.Count != 0)
            {
                rptNote.Visible  = true;
                pnlEmpty.Visible = false;
            }
            else
            {
                rptNote.Visible  = false;
                pnlEmpty.Visible = true;
            }
        }
        protected void btnNewNoteAdd_Click(object sender, EventArgs e)
        {
            string note = txtNote.Text;

            note = note.Trim();

            if (note != "")
            {
                BllProxyIncidentNote.InsertIncidentNote(this.incidentId, this.UcPage.UserId, note);
                this.Update();

                pnlNotes.Visible   = true;
                pnlNewNote.Visible = false;

                txtNote.Text = "";
                this.showTextMessage("Note has been added");
            }
            else
            {
                this.showErrorMessage("Note cannot be left blank!");
            }
        }