StringBuilder strFAQ = new StringBuilder();
strFAQ.Append("
"); //strFAQ.Append( Convert.ToInt32(dr["FAQID"].ToString()) +"."); strFAQ.Append(Convert.ToInt32(dr["serial"].ToString()) + "."); //divFAQList.InnerHtml += " ='"+ Convert.ToInt32(dr["FAQID"].ToString()) +"'> "; strFAQ.Append("" + dr["Question"].ToString() + ""); //divFAQList.InnerHtml += " "; strFAQ.Append(" |
"); strFAQ.Append(dr["Answer"].ToString()); if (count == dsListOfFAQ.Tables[0].Rows.Count) { strFAQ.Append(" "); strFAQ.Append(" "); } strFAQ.Append("Click here to Edit "); //strFAQ.Append(" " + "Approve " + " "); strFAQ.Append("Delete"); strFAQ.Append(" "); strFAQ.Append(" |
lblFAQ.Text = strFAQ.ToString();
}
else
{
lblFAQ.Text = "No record found.";
lblFAQ.ForeColor = System.Drawing.Color.Red;
lblFAQ.Font.Bold = true;
}
}
No comments:
Post a Comment