Passing JavaScript parameters through ASP.NET ListView
<p>I'm trying to pass parameters to a JavaScript function from a link button in a ListView the function only alerts the the passed parameters so I used Eval("Value") as my parameter but it seems that I'm making a mistake.</p>

<p>My code for passing the parameter is</p>

<pre><code>&lt;asp:LinkButton ID="LinkButton1" runat="server" OnClientClick="hello(&lt;%#string.Concat(Eval("Longitude"),",",Eval("Latitude")) %&gt;);"&gt;LinkButton&lt;/asp:LinkButton&gt;
</code></pre>

<p>and the alert function is very simple</p>

<pre><code> function hello(x){
    alert(x);
}
</code></pre>

<p>and the server tag is still not well formed. Any ideas?</p>
