asp.net button does not run the related function
<p>I have an update panel, in it a griedview, and in it a repeater. There is a button to add comment. This button post backs but id does not run the function code behind. Here is my code</p>

<pre><code>-updatepanel
-grdview
-repeater
 &lt;asp:Button  CommandArgument='&lt;%#Eval("id") %&gt;' CommandName='&lt;%# GridView1.Rows.Count.ToString() %&gt;' Text="Yorum ekle" ID="kitapVarYorumEkle" class="blueButton" runat="server"  OnClick="kitapVarYorumEkle_Click"  /&gt;

-/repeater
-/griedview
-/updatepanel
</code></pre>

<p>code inside the js is:</p>

<pre><code>protected void kitapVarYorumEkle_Click(object sender, EventArgs e)
    {

        kitapVarYorum temp = new kitapVarYorum();
        if (Session["id"] != null)
        {
            temp.uyeId = Convert.ToInt32(Session["id"]);
        }
        Button btn = (Button)sender;
        temp.kitapVarId = Convert.ToInt32(btn.CommandArgument);

        string text = "";


        GridViewRow row = GridView1.Rows[Convert.ToInt32(btn.CommandName)];
        if (row != null)
        {
            TextBox txt = row.FindControl("txtYorum") as TextBox;
            if (txt != null)
            {
                text = txt.Text;
            }
        }


        temp.icerik = text;
        var db = Tools.DBBaglanti();
        db.kitapVarYorums.InsertOnSubmit(temp);
        db.SubmitChanges();
        // Page.Response.Redirect(Page.Request.Url.ToString(), true);

    }
</code></pre>

<p>I have tried it outside the the controls and it works</p>
