Click here to Skip to main content
15,910,787 members

Comments by srinualluri (Top 4 by date)

srinualluri 12-Nov-18 22:26pm View    
I am using above code for generating CSV file from datatable . in my local pc its taken 36 secs and after deployed to Development server its taken 1 Min 20 sec

Can you please suggest on this ..Please provide if required any code changes
srinualluri 12-Nov-18 22:24pm View    
StringBuilder stringBuilder = new StringBuilder();
// Only return Null if there is no structure.
if (dataTable.Columns.Count == 0)
return null;

foreach (object col in dataTable.Columns)
{
if (col == null)
stringBuilder.Append(",");
else
stringBuilder.Append("\"" + col.ToString().Replace(@"""", @"""""") + "\",");
}
stringBuilder.Replace(",", Environment.NewLine, stringBuilder.Length - 1, 1);
foreach (DataRow dr in dataTable.Rows)
{
foreach (object column in dr.ItemArray)
{
if (column == null)
stringBuilder.Append(",");
else
stringBuilder.Append("\"" + column.ToString().Replace(@"""", @"""""") + "\",");
}
stringBuilder.Replace(",", Environment.NewLine, stringBuilder.Length - 1, 1);
}
srinualluri 30-Oct-13 7:23am View    
i want divide image in horizontal with space i tried to cutt the image but it is cutting like small small pices but i dont want like that


exp: docomo logo i want to cutt that image | D | O | C | O | M | O



if you need more information pls reply us
srinualluri 15-Mar-13 23:29pm View    
i have create user control that user control,i am using in .aspx page. i have created List Box under user control . when user select list box items based on that tabs should be Enable.
i am not getting any error
Note : first tabs will be Enable by default