passing parameter from aspx to javascript issue
<p>I write code in asp.net backend to pass parameter, however, I found that it does not work if the parameter is so long.
In the backend:</p>

<pre><code>folderList.InnerHtml += "&lt;span onclick='AttachId(" + folder.Id + ")'&gt;" + folder.DisplayName + "&lt;/span&gt;";
</code></pre>

<p>In the frontend:</p>

<pre><code>function AttachId(id) {
            $("[id$='hf_FolderId']").val(id);
            $("[id$='btn_Move']").click();
        }
</code></pre>

<p>The parameter <code>folder.Id="AQMkAGQ2YzBkYjkxLWZjNTYtNDAwAS1hZWY2LWQ3OWI2MDkxZTE2ZAAuAAAD82EfyZcOUkeLGnLBkE1iOgEA04D3/FOc8ES6LdlZ5/AXHgAAAQRaEQAAAA=="</code></p>

<p>If I change it to  "123" it works. Any idea?</p>

<p>Or maybe you could let me know a better way to pass parameter from back to front. Many thanks.</p>
