private void BindIssueDetails()
 {
     try
     {
         clsBLViewMyStatus objClsBLViewMyStatus = new clsBLViewMyStatus();
         clsViewMyStatus   objClsViewMyStatus   = new clsViewMyStatus();
         objClsViewMyStatus.IssueID = IssueID;
         DataSet dsIssueDetails1 = objClsBLViewMyStatus.GetIssueDetails(objClsViewMyStatus);
         pnlIssueDetails.Visible = true;
         if (dsIssueDetails1.Tables[0].Rows.Count > 0)
         {
             //pnlDataGrid.Visible = true;
             dgIssueDetails.DataSource = dsIssueDetails1.Tables[0];
             dgIssueDetails.DataBind();
             if (dgIssueDetails.PageCount > 1)
             {
                 dgIssueDetails.PagerStyle.Visible = true;
             }
             else
             {
                 dgIssueDetails.PagerStyle.Visible = false;
             }
         }
     }
     catch (V2Exceptions ex)
     {
         throw;
     }
     catch (System.Exception ex)
     {
         FileLog objFileLog = FileLog.GetLogger();
         objFileLog.WriteLine(LogType.Error, ex.Message, "ViewIssueStatus.aspx", "BindIssueDetails", ex.StackTrace);
         throw new V2Exceptions(ex.ToString(), ex);
     }
 }
        private void updateIssue()
        {
            try
            {
                clsBLViewMyStatus objClsBLViewMyStatus = new clsBLViewMyStatus();
                clsViewMyStatus   objClsViewMyStatus   = new clsViewMyStatus();
                objClsViewMyStatus.Comments      = txtComments.Text;
                objClsViewMyStatus.IssueID       = Convert.ToInt32(lblIssueID.Text);
                objClsViewMyStatus.SubCategoryID = SubCategoryID;
                int noOfRecordsUpdated = 0;
                noOfRecordsUpdated = objClsBLViewMyStatus.updateIssue(objClsViewMyStatus);
                if (noOfRecordsUpdated > 0)
                {
                    DataSet dsIssueDetails1 = objClsBLViewMyStatus.GetIssueDetails(objClsViewMyStatus);
                    pnlIssueDetails.Visible = true;
                    if (dsIssueDetails1.Tables[0].Rows.Count > 0)
                    {
                        dgIssueDetails.DataSource = dsIssueDetails1.Tables[0];
                        dgIssueDetails.DataBind();
                        if (dgIssueDetails.PageCount > 1)
                        {
                            dgIssueDetails.PagerStyle.Visible = true;
                        }
                        else
                        {
                            dgIssueDetails.PagerStyle.Visible = false;
                        }

                        pnlAddComments.Visible = false;
                        lblMessage.Text        = "Issue is Reopened.";
                        lblDescription.Text    = dsIssueDetails1.Tables[0].Rows[0]["Description"].ToString();
                    }
                }
            }
            catch (V2Exceptions ex)
            {
                throw;
            }
            catch (System.Exception ex)
            {
                FileLog objFileLog = FileLog.GetLogger();
                objFileLog.WriteLine(LogType.Error, ex.Message, "ViewIssueStatus.aspx", "updateIssue", ex.StackTrace);
                throw new V2Exceptions(ex.ToString(), ex);
            }
        }