flow never goes into the if loop even if the check box is checked
<pre><code>&lt;div&gt;
                &lt;asp:GridView ID="gdvReceivedLetter" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                    CellPadding="3" DataKeyNames="ID" GridLines="Horizontal" EmptyDataText="No Records Found"
                    PageSize="10" Width="95%" BackColor="White" BorderColor="#E7E7FF" BorderStyle="None"
                    Font-Names="Arial" Font-Size="10.5" BorderWidth="1px" OnSelectedIndexChanged="gdvReceivedLetter_SelectedIndexChanged"
                    OnPageIndexChanging="gdvReceivedLetter_PageIndexChanging"&gt;

                    &lt;FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" /&gt;
                    &lt;RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" /&gt;
                    &lt;Columns&gt;
                        &lt;asp:BoundField DataField="ID" HeaderText="ID" Visible="False"&gt;&lt;/asp:BoundField&gt;
                        &lt;asp:TemplateField Visible="true"&gt;
                            &lt;HeaderTemplate&gt;
                                &lt;input type="CheckBox" id="chkSelect" runat="server"  /&gt;
                            &lt;/HeaderTemplate&gt;
                            &lt;ItemTemplate&gt;
                                &lt;asp:CheckBox runat="server" ID="chkDelete"  /&gt;   
                            &lt;/ItemTemplate&gt;
                            &lt;HeaderStyle Width="9px" /&gt;
                            &lt;ItemStyle Width="9px" /&gt;
                        &lt;/asp:TemplateField&gt;

        &lt;asp:BoundField DataField="FileName" HeaderText="फाईल नाव/क्र."&gt;
                            &lt;HeaderStyle CssClass="GridItemHeaderLarge" /&gt;
                            &lt;ItemStyle CssClass="GridItemLarge" /&gt;
                        &lt;/asp:BoundField&gt;                            

                    &lt;/Columns&gt;
                    &lt;PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" /&gt;
                    &lt;SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" /&gt;
                    &lt;HeaderStyle BackColor="#4A3C8C" ForeColor="#F7F7F7" /&gt;
                    &lt;AlternatingRowStyle BackColor="#F7F7F7" /&gt;
                &lt;/asp:GridView&gt;
            &lt;/div&gt;

&lt;table width="100%"&gt;
                &lt;tr&gt;
                    &lt;td width="80%"&gt;
                    &lt;/td&gt;
                    &lt;td width="20%" style="padding-top: 18px"&gt;
                        &lt;asp:Button runat="server" ID="btnDelete" Text="काढून टाका" Font-Bold="true" OnClientClick="return Delete();"
                            Enabled="true" OnClick="btnDelete_Click" /&gt;
                    &lt;/td&gt;
                &lt;/tr&gt;
            &lt;/table&gt;
</code></pre>

<hr>

<blockquote>
  <p>//////here is the PROBLEM ////
  exen the check box is checked the cursor
  never comes here!!! WHY!!???? 
  ///where is the problem?? //plz get me
  out this plzzzzzzzzz
  where is the problem??</p>
  
  <p>i m new in this language</p>
  
  <p>this is the Click event...</p>
</blockquote>

<pre><code>foreach (GridViewRow chkrow in gdvReceivedLetter.Rows)
            {
                CheckBox chk = (CheckBox)chkrow.FindControl("chkDelete");
                if (chk != null &amp;&amp; chk.Checked)
                {
                    Page.ClientScript.RegisterStartupScript(this.GetType(), "", "alert('CHECKEDDDDD');", true);   
                }
            }
</code></pre>
