How to pass javascript var to server side on asp.net
<p>I'm trying to pass a textarea value to the server side. The textarea cant be runat=server though.
heres my code:</p>

<pre><code>&lt;script type="text/javascript"&gt;
        function replace() {
            //Replace &lt; and &gt; on textarea
            var obj = document.getElementById('recipient_list');
            var str = obj.value;
            str = str.replace(/&lt;/i, "(");
            str = str.replace(/&gt;/i, ")");
            obj.value = str;
            alert("rec_lst.value: " + document.getElementById('recipient_list').value);

            //Pass value to server.
            alert("passing to server");
            document.getElementById("ctl00$ContentPlaceHolder1$txtEmails").value = str;
            alert("Passed to server");
            alert("txtEmails.value: " + document.getElementById("ctl00$ContentPlaceHolder1$txtEmails").value);
        }
    &lt;/script&gt;
</code></pre>

<p>This isn't working though... Any ideas how to fix or better implement this??..</p>
