title: alert shows undefined in javascript when passed value form aspx.cs page
body: <pre><code> string locationName = "Mumbai";
      Page.ClientScript.RegisterStartupScript(Type.GetType
      ("System.String"), "addScript", "PassValues(" + locationName + ")", true);
  </code></pre>
  
  <p>in javascript my code contains</p>
  
  <pre><code>&lt;script language="javascript" type="text/javascript"&gt;
          function PassValues(locationName)
              {
               var txtValue = locationName; 
               alert(txtValue);
              }
  &lt;/script&gt;
  </code></pre>
  
  <p>Here the alert shows undefined instead of "Mumbai" </p>