title: asp.net razor special character issue in javascript variable
body: <p>I'm using razor in webmatrix and I have a problem with the string special character. I want to put a string into a varibale in the javascript but when I try to use the tag @ it shows a problem 
  this is the code :</p>
  
  <pre><code>&lt;script&gt;
   $Edit.click(function() {
          var userid = $(this).closest('td').prev('td').text();
       var stringDiv = "@{ var selectQueryString4 =  SELECT * FROM DemandeConge where UserId = '\"+ trim(userid) + \"'\"+\";&lt;h3&gt;modifier la demande de congé de \" + userid +  \"&lt;/h3&gt;foreach(var row in db.Query(selectQueryString4)){&lt;form action='responsable.cshtml' method=\"post\"&gt;&lt;label for=\"txtDebut\"&gt;Date début :&lt;/label&gt;&lt;input type=\"text\" id=\"txtDebut\" value=\"+ @row.DateDebutDemande +\"/&gt;&lt;/br&gt;&lt;label for=\"txtFin\"&gt;Date de fin :&lt;/label&gt;&lt;input type=\"text\" id=\"txtFin\" value=\"+ @row.DateFinDemande +\"/&gt;&lt;/br&gt; &lt;label for=\"txtTypeCong\"&gt;Type de congé :&lt;/label&gt;&lt;input type=\"text\" id=\"txtTypeCong\" value=\"+ @row.TypeConge +\"/&gt;&lt;input type=\"hidden\" name=\"UserId\" value=\"+ @row.UserId +\" /&gt;&lt;input type=\"hidden\" name=\"type\" value=\"edite\" /&gt;&lt;input type=\"submit\" value=\"Oui\"  /&gt; &lt;input type=\"button\" value=\"No\" onclick=\"$('#edite').slideUp(); document.getElementById('edite').innerHTML = ' '\" /&gt; &lt;/form&gt;}}}");
  
  
      document.getElementById('edite').innerHTML = stringDiv ;
          $('#edite').slideDown(1000);
  
          )
  &lt;/script&gt;
  </code></pre>
  
  <p>So I want to know if there is any way to solve this problem.</p>