Question : RowDeleting event execute twice

I have coded a GridView in ASP using Visual Studio code behind page. When click the "Delete" link, rptdirs_RowDeleting will executed. Have any idea how to control this behaivor so that it will only execute once.

             id="rptdirs"
       autogeneratecolumns="false"
       OnRowDeleting = "rptdirs_RowDeleting"
        DataKeyNames="Name, FullName"
        GridLines="None"
          Runat="server" HorizontalAlign="Left" >
           
                    ButtonType="Image"
            ShowSelectButton="true"
            SelectImageUrl="~\Images\folder.gif" />
                    DataField="Name" />      
                 
               
                                 Runat="server" />
           

       
 
       

   

Answer : RowDeleting event execute twice

When you click cancel when you sure that you want to delete ? is asked, does this event still execute?
Random Solutions  
 
programming4us programming4us