how to deal with '&', '(', ')' in javascript
<p>from my code behind i am passing this to client side script</p>

<p><strong>C# code behind</strong>
*<em>note if i comment the below line than <strong>i dont get js error</strong>.</em>*</p>

<pre><code> if (btnDelete != null)
 {   
   btnDelete.Attributes["onclick"] = String.Format("return DeleteRow('{0}', '{1}', '{2}', '{3}');", e.Row.ClientID, e.Row.RowIndex, DataBinder.Eval(e.Row.DataItem, "Id"), DataBinder.Eval(e.Row.DataItem, "Name"));
}
</code></pre>

<p></p>

<pre><code>//javascript
function DeleteRow(rowId, rowIdx, Id, Name) {    
    var result = confirm('Are you sure you want to delete this record? \n\n Id: ' + Id + "\n Name: " + Name);

  if (!result)
       HighlightRow(rowId, rowIdx % 2 ? "#DEEEE9" : "#FFFFFF");
   return result;
}
</code></pre>

<p>error message:</p>

<pre><code>Message: Unterminated string constant
Line: 1280
Char: 180
Code: 0
URI: http://localhost:4964/admin/default.aspx


Message: Unterminated string constant
Line: 1341
Char: 178
Code: 0
URI: http://localhost:4964/default.aspx


Message: Expected ')'
Line: 1401
Char: 152
Code: 0
URI: http://localhost:4964/default.aspx
</code></pre>
