string policyDetails = "<table style='width: 100%' >";
foreach (DataRow dr in dtPolicyDetails.Rows)
{
policyDetails = policyDetails + "<tr><td style='width:50%'><label>" + dr["PaymentHead"].ToString() + "</label></td><td><label style='Color:Red;'>" + dr["Nos"].ToString() + "</label></td><td><label style='Font-Weight:Bold;'>Rs. " + dr["Amount"].ToString() + "</label></td></tr>";
}
policyDetails = policyDetails + "</table>";
tblPolicyDetails.InnerHtml = policyDetails;
and its producing table like below:
Premium Calculation:
Basic TP 1 Rs. 619.00
Owner Drive PA 1 Rs. 50.00
Total Rs. 669.00
Service Tax 14.5 Rs. 97.00
Service Charge Rs. 0.00
Total Payment Rs. 766.00
i want to show Yes Where the value is showing 1.