HiddenField hdnPriority = (e.Row.Items[1].FindControl(Constants.HiddenFieldPriority) as HiddenField); HiddenField hdnRead = (e.Row.Items[2].FindControl(Constants.HiddenFieldRead) as HiddenField); Image imgRead = null; imgRead = (e.Row.Items[2].FindControl(Constants.ImageRead) as Image); Image imgPriority = null; imgPriority = (e.Row.Items[1].FindControl(Constants.ImagePriority) as Image); ////Bold Unbold Logic. if (hdnPriority.Value.ToString() != Constants.High && hdnRead.Value.ToString() == String.Empty && lstMail.SelectedIndex != 1) { e.Row.CssClass = Constants.Bold_Font; imgRead.Visible = true; imgRead.ImageUrl = "~/Images/IsNew.jpg"; imgPriority.Visible = true; imgPriority.ImageUrl = "~/Images/Transparent.jpg"; } else if (hdnPriority.Value.ToString() != Constants.High && hdnRead.Value.ToString() != String.Empty && lstMail.SelectedIndex != 1) { e.Row.CssClass = Constants.UnBold_Font; imgRead.Visible = true; imgRead.ImageUrl = "~/Images/IsOpen.png"; imgPriority.Visible = true; imgPriority.ImageUrl = "~/Images/Transparent.jpg"; } ////Bold Unbold Logic For High Priority Email. else if (hdnPriority.Value.ToString() == Constants.High && hdnRead.Value.ToString() == String.Empty && lstMail.SelectedIndex != 1) { e.Row.CssClass = Constants.Bold_High_Font; imgPriority.Visible = true; imgPriority.ImageUrl = "~/Images/High.png"; imgRead.Visible = true; imgRead.ImageUrl = "~/Images/IsNew.jpg"; } else if (hdnPriority.Value.ToString() == Constants.High && hdnRead.Value.ToString() != String.Empty && lstMail.SelectedIndex != 1) { e.Row.CssClass = Constants.UnBold_High_Font; imgPriority.Visible = true; imgPriority.ImageUrl = "~/Images/High.png"; imgRead.Visible = true; imgRead.ImageUrl = "~/Images/IsOpen.png"; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)