failed to call event from gridview linkbutton
<p>basically i wish to set a session folo by button click, but i failed to do so</p>

<p><strong>i failed to call abcde function(), don't know what to set,i did try onRowCommand,onDataBound,OnDataBinding</strong></p>

<pre><code>&lt;asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1"&gt;
</code></pre>

<p><strong>my link button on gridview</strong>         </p>

<pre><code>&lt;asp:LinkButton ID="lnkname" runat="server" Text='&lt;%#Eval("movieTitle") %&gt;' Width=500 CommandName="cmdLink"&gt;
</code></pre>

<p><strong>in order to find link button control i did try DataGridItemEventArgs, but it didnt work as well</strong></p>

<pre><code> protected void abcde(object sender, GridViewCommandEventArgs e)
    {
  if (e.CommandName == "cmdLink")
        {

             string path = //some path;

            Session["path"] = path;

((LinkButton)e.Item.FindControl("lnkname")).PostBackUrl = "~/somewhere/ + Session["path"].ToString()";

        }
    }
</code></pre>

<p><strong>y i do so is because my next page function is depend on the session</strong></p>
