Пример #1
0
        }//GetHost

        protected void btnEdit_Click(object sender, EventArgs e)
        {
            pnl_eidt.Visible = true;

            Button btnEdit = sender as Button;

            GridViewRow gRow = (GridViewRow)btnEdit.NamingContainer;

            string request_id = ResultGridView.DataKeys[gRow.RowIndex].Value.ToString();

            if (request_id != "")
            {
                RequestDAL dal = new RequestDAL();

                RequestData data = dal.GetRequestId(request_id);

                if (data != null)
                {
                    txtRequestId.Text   = data.RequestID;
                    txtSubject.Text     = data.Subject;
                    txtDescription.Text = data.Description;
                    txtNote.Text        = data.Note;
                }
            }
        }