Wednesday 22 August 2012

StringBuilder in c# with Append method| Asp.Net | How to use

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>");
             
                                }
                            }
Share This
Previous Post
Next Post

FYJC XI standard online admisson Process and declaraton of Merit list . Cut off List For prevous year also . 10 Th Results onlne declaraton Maharashtra Region .

0 comments: