title: Pass multiple parameters from ASP.NET to javascript function
body: <p>Essentially what I'm trying to do is fairly simple....pass more than one parameter (4 total eventually) into a javascript function from my ASP.NET code behind.</p>
  
  <p>What I've tried to do is this in the ASCX file...</p>
  
  <pre><code>function ToggleReportOptions(filenameText, buttonText) { /*stuff happens here*/ }
  </code></pre>
  
  <p>and this in the ASCX.cs file...</p>
  
  <pre><code>string testing123 = "testStringOne";
  string testing124 = "testStringTwo";
  optReportOptionsRunRealTime.Attributes["onClick"] = "ToggleReportOptions('" + testing123 + ", " + testing124 + "')";
  optReportOptionsOffline.Attributes["onClick"] = "ToggleReportOptions('" + testing123 + ", " + testing124 + "')";
  </code></pre>
  
  <p>but this doesn't seem to work as in my output the first variable contains "testStringOne, testStringTwo" and the 2nd variable is "undefined"</p>
  
  <p>Any help on clearing up my probably stupid issue here would be great (i'm very inexperienced with javascript, more of a .NET developer)</p>