title: Newline in a ValidationMessage
body: <p>I'm testing a list of things for null. Every time I find one, I save it in an array to implement it in a validationmessage.</p>
  
  <p>Output I want looks like this:</p>
  
  <p>Field 1 is required<br/>
  Field 4 is required<br/>
  etc...</p>
  
  <p>But I can't seem to be able to start a new line.</p>
  
  <p>Now, it looks like this:</p>
  
  <p>Field 1 is required Field 4 is required </p>
  
  <p>Does anybody know how to achieve this?</p>
  
  <p>EDIT:</p>
  
  <p>controller:</p>
  
  <pre><code>IDictionary&lt;int, String&gt; emptyFields = new Dictionary&lt;int, String&gt;();
  
  foreach (Something thing in AnotherThing.Collection)
  {
      if (thing.Property == null)
          emptyFields.add(thing.Index, thing.Name);                   
  }
  
  if (emptyFields.Any())
      throw new CustomException() { EmptyFields = emptyFields };
  </code></pre>
  
  <p>This exception is handled here:</p>
  
  <pre><code>catch (CustomException ex)
  {                   
      ModelState.AddModelError("file", ex.GetExceptionString());
      return View("theView");
  }    
  </code></pre>
  
  <p>CustomException:</p>
  
  <pre><code>public class CustomException: Exception
  {
      public IDictionary&lt;int,String&gt; EmptyFields { get; set; }
      public override String Label { get { return "someLabel"; } }
      public override String GetExceptionString()
      {
          String msg = "";
          foreach (KeyValuePair&lt;int,String&gt; elem in EmptyFields)
          {
              msg += "row: " + (elem.Key + 1).ToString() + " column: " + elem.Value + "&lt;br/&gt;";      
          }
          return msg;        
      }
  }
  </code></pre>
  
  <p>view:</p>
  
  <pre><code>&lt;span style="color: #FF0000"&gt;@Html.Raw(Html.ValidationMessage("file").ToString())&lt;/span&gt;
  </code></pre>