Click here to Skip to main content
15,925,505 members
Home / Discussions / C#
   

C#

 
GeneralRe: Application Framework Pin
Kevin McFarlane30-Jun-06 8:32
Kevin McFarlane30-Jun-06 8:32 
QuestionMessage Box Pin
AmitG7728-Jun-06 23:01
AmitG7728-Jun-06 23:01 
AnswerRe: Message Box Pin
J4amieC28-Jun-06 23:22
J4amieC28-Jun-06 23:22 
GeneralRe: Message Box Pin
AmitG7728-Jun-06 23:45
AmitG7728-Jun-06 23:45 
AnswerRe: Message Box Pin
naughtinj29-Jun-06 0:11
naughtinj29-Jun-06 0:11 
AnswerRe: Message Box Pin
engsrini29-Jun-06 6:52
engsrini29-Jun-06 6:52 
QuestionDatagrid cell formatting Pin
naughtinj28-Jun-06 23:00
naughtinj28-Jun-06 23:00 
AnswerRe: Datagrid cell formatting Pin
aruna_susee29-Jun-06 0:24
aruna_susee29-Jun-06 0:24 
AnswerRe: Datagrid cell formatting Pin
Kais4U29-Jun-06 0:46
Kais4U29-Jun-06 0:46 
QuestionProblem deploying app with Crystal Reports Pin
ersinsivaz28-Jun-06 22:30
ersinsivaz28-Jun-06 22:30 
AnswerProblem deploying app with Crystal Reports Pin
PlayByTheRules28-Jun-06 23:35
PlayByTheRules28-Jun-06 23:35 
AnswerRe: Problem deploying app with Crystal Reports Pin
Ista29-Jun-06 6:40
Ista29-Jun-06 6:40 
QuestionWeird problem with Button.Image Pin
atuldeore28-Jun-06 22:29
atuldeore28-Jun-06 22:29 
AnswerRe: Weird problem with Button.Image Pin
synunn29-Jun-06 0:14
synunn29-Jun-06 0:14 
AnswerRe: Weird problem with Button.Image Pin
engsrini29-Jun-06 6:13
engsrini29-Jun-06 6:13 
QuestionRetrieve TextBoxes border colour. Pin
Stu Richardson28-Jun-06 22:26
Stu Richardson28-Jun-06 22:26 
AnswerRe: Retrieve TextBoxes border colour. Pin
JoeSharp28-Jun-06 22:42
JoeSharp28-Jun-06 22:42 
GeneralRe: Retrieve TextBoxes border colour. [modified] Pin
Stu Richardson28-Jun-06 23:10
Stu Richardson28-Jun-06 23:10 
Question[.Net1.1][Winform] MaximizeBox event ?! Pin
Seb.2628-Jun-06 22:16
Seb.2628-Jun-06 22:16 
AnswerRe: [.Net1.1][Winform] MaximizeBox event ?! Pin
Nader Elshehabi28-Jun-06 23:25
Nader Elshehabi28-Jun-06 23:25 
AnswerRe: [.Net1.1][Winform] MaximizeBox event ?! Pin
engsrini29-Jun-06 6:22
engsrini29-Jun-06 6:22 
QuestionTakes too long to create a big string. Pin
sergestusxx28-Jun-06 21:41
sergestusxx28-Jun-06 21:41 
Hi!

I'm building a big xml string with a for loop and it takes veeeeeeeeeeeeeery much to complete this process. Later on I load it in an XmlDocument and save it in a file. This last thing takes no time.

The loop is something like:

<br />
string xml = "<Top>";<br />
for (int i=0; i < <ArrayList>.Count; i++){<br />
<br />
xml += "<Something>";<br />
xml += bla bla;<br />
xml += "</Something>";<br />
xml += <Object>.ToXml();  //This calls a method which returns an xml string of another object (may call another one inside too).<br />
...<br />
...<br />
<br />
}<br />
xml += "</Top>";<br />


I know than the process may not be linear in time, but is there any known way to speed up this proccess? When the thing gets big (2MB xml file) it's really annoying to wait tons of minutes for this to save.

Thanx for any help!
AnswerRe: Takes too long to create a big string. Pin
Martin#28-Jun-06 21:52
Martin#28-Jun-06 21:52 
AnswerRe: Takes too long to create a big string. Pin
sathish s28-Jun-06 21:52
sathish s28-Jun-06 21:52 
AnswerRe: Takes too long to create a big string. Pin
Sushant Duggal28-Jun-06 21:53
Sushant Duggal28-Jun-06 21:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.