title: RegisterClientScript not work for set array value
body: <p>I define one array in my javascript.js file : </p>
  
  <pre><code>var rowPermissions = [];
  </code></pre>
  
  <p>and I set values in asp.net code as Client Script Block in my usercontrol.ascx page :</p>
  
  <pre><code>if (permission == true)
      folderPermissions = "rowPermissions[" + folderId + "] = '1';";
  else
      folderPermissions = "rowPermissions[" + folderId + "] = '0';";
  
  ScriptManager.RegisterClientScriptBlock(upExpander, upExpander.GetType(), "row Permission"+folderId + Guid.NewGuid(), folderPermissions, true);
  </code></pre>
  
  <p>but it won't work, and the array is not filled. why? and how can I solve this????</p>