Put LinkButton on GridView's cell and run javascript function when user click on it
<p>I add a GridView on page in UpdatePanel and put a Panel in one of cells and add LinkButton from code behind to this panel like below</p>

<pre><code>Panel pnl = (Panel)GridView1.Rows[i].Cells[4].FindControl("pnlSteps");//pnlSteps is Panel's Id
LinkButton lnk = new LinkButton();
//...
pnl.Controls.Add(lnk);
</code></pre>

<p>when user click on each LinkButton I want to run a javascript's function,how can i do it?</p>
