Question : How to run imagebutton code from datagridview - aspx

Hi

I have a datagridview with an image button in it. How do I run the code of the image button and determine what row it was run from.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
<asp:GridView ID="myGridView" runat="server" AutoGenerateColumns="False" 
             BackColor="#DEBA84" BorderColor="#DEBA84" OnRowDataBound="myGridView_OnRowDataBound"
            BorderStyle="None" BorderWidth="1px"  >
            <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" Wrap="true"  />
            <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
            <PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
        
        <Columns >
       
        <asp:TemplateField HeaderText="Apology" >
            <ItemTemplate>
               <asp:ImageButton ID="btnApology" runat="server" ImageUrl ="Images/apology.gif" CommandArgument='<%# Container.DataItemIndex %>'
                 CommandName="ApologyCommand"></asp:ImageButton>
             </ItemTemplate>
             <itemStyle Width = "100px" HorizontalAlign="Center"  />
        </asp:TemplateField>
  </Columns>
        
        </asp:GridView>

Answer : How to run imagebutton code from datagridview - aspx

let me be clear, you can ruin your router by uploading foreign firmware to it.

but that being said, according to:
http://www.dd-wrt.com/wiki/index.php/Supported_Devices#Netgear

the hardware support says:
WNR2000  v2  PY309100105  Broadcom 4716B0@?  32  4  Broadcom  b/g/n?  -  1  1  1 WAN/4 LAN  -   ?   ?  v.24 SP2 - build 14536 - 20100531  -

from this link:
http://www.dd-wrt.com/site/support/other-downloads?path=others%2Feko%2FV24-K26%2Fsvn14536%2F
the second line down is a link to the chk firmware. for the wnr2000
the first is the .bin firmware.

according to others you upload the firmware via web interface.
the closest instructions they have is for the wnr3500
found :http://dd-wrt.com/wiki/index.php/Netgear_WNR3500L

basically it's all experimental and there is no clear - step 1) step 2) download this.. etc instructions for that model.
Random Solutions  
 
programming4us programming4us