MVC3 C#.NetWebアプリを持っています。DataTableをループしています。一部の行は正常にインポートされていますが、そうでない行もあります。エラーのリストをリスト形式でビューに送り返したいのですが。次のテキストをViewBagプロパティに割り当てています
Input error on Row(1) Cell(3) Input string was not in a correct format.<br/> Input error on Row(4) Cell(3) Input string was not in a correct format.<br/>
私はbrがHTMLに改行を書くことを望んでいました。そうではありません。エラーメッセージを次のように表示したい
Input error on Row(1) Cell(3) Input string was not in a correct format.
Input error on Row(4) Cell(3) Input string was not in a correct format.
何か案は?