asp.net passing parameter to js function in listview
<p>I want to pass parameter to my js function in my listview. I did that with one parameter. Like that :</p>

<pre><code> &lt;asp:Button ID="btnRezAktar" runat="server" Text="Aktar" OnClientClick='&lt;%# "SubmitPage(" + Eval("o_no") +" );"%&gt;' /&gt;

 &lt;script language="javascript"&gt;
        function SubmitPage(o_no) {
            window.opener.document.getElementById('txtRoomNo').value = o_no.toString();
            this.close();
        }
    &lt;/script&gt;
</code></pre>

<p>but I want to pass two parameter, it does not work:</p>

<pre><code>&lt;asp:Button ID="btnRezAktar" runat="server" Text="Aktar" OnClientClick='&lt;%# "SubmitPage(" + Eval("o_no") + "," + Eval("k_ad") + " );"%&gt;' /&gt;

 &lt;script language="javascript"&gt;
        function SubmitPage(o_no, k_ad) {
            window.opener.document.getElementById('txtRoomNo').value = o_no.toString();
             window.opener.document.getElementById('txtNameSurname').value = k_ad.toString();
       this.close();
        }
    &lt;/script&gt;
</code></pre>

<p>What is wrong with that?</p>
