Unterminated string constant error in asp.net
<p><img src="http://i.stack.imgur.com/AgLfj.jpg" alt="enter image description here"></p>

<p>Got this error while call the function</p>

<pre><code> static public void DisplayAJAXMessage(Control page, string msg)
{
    string myScript = String.Format("alert('{0}');", msg);

    ScriptManager.RegisterStartupScript(page, page.GetType(), "MyScript", myScript, true);
}
</code></pre>

<p>Calling this function:</p>

<pre><code>    string sampledata = "Name                  :zzzzzzzzzzzzzzzz&lt;br&gt;Phone         :00000000000000&lt;br&gt;Country               :India";
        string sample = sampledata.Replace("&lt;br&gt;", "\n");


    MsgBox.DisplayAJAXMessage(this, sample);
</code></pre>

<p>I need to display Name,Phone and Country in next line.</p>
