Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jun 21, 2012 01:38 PM by bbcompent1
Jun 20, 2012 05:00 PM|LINK
in there to do with \n \r environmene.newline or anything it does not fire. I can however place random text and it does work.
protected void btnGeneratePDF_Click(object sender, EventArgs e)
string msg = "";
foreach (IValidator aValidator in this.Validators)
msg += aValidator.ErrorMessage + "\n"; //Adding new line for each validator?
public void msgBox_error(String message)
Label msgBox = new Label();
String msg = message;
Jun 20, 2012 05:35 PM|LINK
When we do a \n or \r, we need to escape it in C# so do that like this:
\n = \\n
\r = \\r
Jun 20, 2012 06:23 PM|LINK
Thank you, I had thought the \ was the escape, but i guess that is part of the character.
Jun 21, 2012 01:38 PM|LINK