public bool BindNotificationForMark() { try { PPRDataBL obj = new PPRDataBL(); DataTable dt = new DataTable(); if (Session["UserId"] != null) { dt = obj.BindNotificationForMarkBL(Session["UserId"].ToString()); } if (dt.Rows.Count > 0) { StringBuilder s = new StringBuilder(); for (int i = 0; i < dt.Rows.Count; i++) { s.Append("<a href='RaiseQuery.aspx'>"); s.Append("<div class='task-info clearfix'>"); s.Append("<div class='desc pull-left'>"); s.Append("<p style='width: 120%;color: green;'>" + dt.Rows[i]["SenderName"].ToString() + " is marked " + "PPR ID :- " + dt.Rows[i]["PPRId"].ToString() + " for your Comment last date of comment is " + dt.Rows[i]["LastDateOfComment"].ToString() + "</p>"); s.Append("</div>"); s.Append("</div>"); s.Append("</a>"); } lblPPRApprovalRequest.Text = s.ToString(); } } catch (Exception ex) { LogError(ex); } return(false); }
public bool BindNotificationForMark() { try { PPRDataBL obj = new PPRDataBL(); DataTable dt = new DataTable(); dt = obj.BindNotificationForMarkBL(Session["UserId"].ToString()); if (dt.Rows.Count > 0) { StringBuilder s = new StringBuilder(); for (int i = 0; i < dt.Rows.Count; i++) { s.Append("<a href='RaiseQuery.aspx' style='background:#fcf8e3;padding: 10px;float: left;border-bottom: 1px solid #8b5c7e;width: 280px;'>"); s.Append("<span>" + dt.Rows[i]["SenderName"].ToString() + " is marked " + "PPR ID :- " + dt.Rows[i]["PPRId"].ToString() + " for your Comment last date of comment is " + dt.Rows[i]["LastDateOfComment"].ToString() + "</span></a>"); } lblPPRApprovalRequest.Text = s.ToString(); } } catch (Exception ex) { LogError(ex); } return(false); }