using System.Text;
Logic to use StringBuilder in Program to display the report. with append method
To improve performance of application.
StringBuilder strAppend = new StringBuilder();
if (dsrpt.Tables[0].Rows.Count != 0)
{
for (int i = 0; i < dt1.Rows.Count; i++)
{
strAppend.Append("<TABLE BGCOLOR=RED WIDTH=100% height=60%>");
strAppend.Append("<TR><TD>" + (dt1.Rows[1][0]) + "</TD></TR>");
strAppend.Append("<TR><TD>" + (dt1.Rows[2][1]) + "</TD></TR>");
strAppend.Append("</TABLE>");
}
}
Logic to use StringBuilder in Program to display the report. with append method
To improve performance of application.
StringBuilder strAppend = new StringBuilder();
if (dsrpt.Tables[0].Rows.Count != 0)
{
for (int i = 0; i < dt1.Rows.Count; i++)
{
strAppend.Append("<TABLE BGCOLOR=RED WIDTH=100% height=60%>");
strAppend.Append("<TR><TD>" + (dt1.Rows[1][0]) + "</TD></TR>");
strAppend.Append("<TR><TD>" + (dt1.Rows[2][1]) + "</TD></TR>");
strAppend.Append("</TABLE>");
}
}
0 comments: