I have label in which I display a table, as below:
Label1.Text = "<table>";
Label1.Text += "<tr>";
Label1.Text += "<td> Date";
Label1.Text += "</td>";
Label1.Text += "<td>Result";
Label1.Text += "</td>";
while (dr.Read())
{
Label1.Text += "<tr>";
Label1.Text += "<td>" + dr["date"];
Label1.Text += "</td>";
if (st >= st1)
{
double result = (st - st1);
if (Pair == "USD.CHF")
{
{
double pips = result * 100;
Label3.Text = Convert.ToString(pips);
}
}
else double pips = result * 100;
{
Label3.Text = Convert.ToString(pips);
}
Label1.Text += "<td>" + dr["pips"];
Label1.Text += "</td>";
}
I have to Sum up all the pips in the loop and display in label.
Please help me.
Thanks
Yasmeen
MOD EDIT: Please use code tags when posting code.
This post has been edited by eclipsed4utoo: 03 May 2011 - 04:30 AM

New Topic/Question
Reply



MultiQuote




|