call a function each time page changed in datatable
<p>I am using jquery and datatables but stuck in somewhere.I have a gridview and I am trying make something like alerting the id of the selected row. My onclick event only works for first page's datas and thats understandable since I only call it when table first populated. So how can I make that function run when page changed ? 
Here is my gridview:</p>

<pre><code>&lt;asp:GridView ID="GridView1" CssClass="mGrid" runat="server" DataSourceID="EntityDataSource1" AutoGenerateColumns="False" DataKeyNames="UrunId"&gt;
            &lt;Columns&gt;
                &lt;asp:TemplateField ItemStyle-CssClass="hiddenTr" FooterStyle-CssClass="hiddenTr" HeaderStyle-CssClass="hiddenTr"&gt;
                    &lt;ItemTemplate&gt;
                        &lt;%#Eval("UrunId") %&gt;
                    &lt;/ItemTemplate&gt;
                &lt;/asp:TemplateField&gt;
                &lt;asp:TemplateField HeaderText="İsim"&gt;
                    &lt;ItemTemplate&gt;
                        &lt;%#Eval("UrunAdi") %&gt;
                    &lt;/ItemTemplate&gt;
                &lt;/asp:TemplateField&gt;
                &lt;asp:TemplateField HeaderText="Fiyat"&gt;
                    &lt;ItemTemplate&gt;
                        &lt;%#Eval("UrunFiyati") %&gt;
                    &lt;/ItemTemplate&gt;
                &lt;/asp:TemplateField&gt;
                &lt;asp:TemplateField HeaderText="Para Birimi"&gt;
                    &lt;ItemTemplate&gt;
                        &lt;%#Eval("ParaTipi") %&gt;
                    &lt;/ItemTemplate&gt;
                &lt;/asp:TemplateField&gt;
                &lt;asp:TemplateField HeaderText="Kategori"&gt;
                    &lt;ItemTemplate&gt;
                        &lt;%#Eval("UrunKategori") %&gt;
                    &lt;/ItemTemplate&gt;
                &lt;/asp:TemplateField&gt;
                &lt;asp:TemplateField HeaderText="Sınıf"&gt;
                    &lt;ItemTemplate&gt;
                        &lt;%#Eval("MP") %&gt;
                    &lt;/ItemTemplate&gt;
                &lt;/asp:TemplateField&gt;
            &lt;/Columns&gt;
        &lt;/asp:GridView&gt;
</code></pre>

<p>And my jquery:</p>

<pre><code>$(document).ready(function () {

        $("#&lt;%=GridView1.ClientID%&gt;").prepend($("&lt;thead&gt;&lt;/thead&gt;").append($(this).find("tr:first"))).dataTable({
            "language": {
                "search": "Ara",
                "lengthMenu": "Her sayfada _MENU_  kayıt göster.",
                "infoFiltered": "_MAX_ kayıt arasından filtrelendi.",
                "info": "_PAGES_ sayfa arasıdan _PAGE_.sayfa gösteriliyor.",
                "paginate": {
                    "first": "İlk",
                    "last": "Son",
                    "next": "Sonraki",
                    "previous": "Önceki"
                }
            }
        });
        SatirlaraOnclickAt();
    });

        function SatirlaraOnclickAt() {
            $("#&lt;%=GridView1.ClientID%&gt; tr").click(function () {
                var ilkSatir = $("#&lt;%=GridView1.ClientID%&gt;").find("tr:first").find("td:first").text();
                var secilenSatir = $(this).find("td:first").text();
                if (ilkSatir != secilenSatir) {
                    var id = $(this).find("td:first").text();
                    alert(id);
                }       
            });
        }
</code></pre>

<p>Like I said, functions work well but I need to run onclick function each time the page changes.</p>