Can replacing this with stringbuilder advisable.
Or since iteration is less only 20 times, the time taken by using strings and string builder will be the same.
for( int i = 0; i< 20; i++ )
{
strCell2 = "<input type=hidden id='Id" + rwCnt + "' name='id" + rwCnt + "' value='" + ID + "' />"
+ "<input type=hidden id='hidId" + rwCnt + "' name='hidId" + rwCnt + "' value='" + kEntityName + "' />"
+ "<input type=hidden id='setupType" + ID + "' value=" + ID.ToString() + " />";
similar codes here..
other codes here....
}
Or since iteration is less only 20 times, the time taken by using strings and string builder will be the same.
for( int i = 0; i< 20; i++ )
{
strCell2 = "<input type=hidden id='Id" + rwCnt + "' name='id" + rwCnt + "' value='" + ID + "' />"
+ "<input type=hidden id='hidId" + rwCnt + "' name='hidId" + rwCnt + "' value='" + kEntityName + "' />"
+ "<input type=hidden id='setupType" + ID + "' value=" + ID.ToString() + " />";
similar codes here..
other codes here....
}
Comment