I am new in .net.
Please help me to access ImageButton control of Gridview->Itemtemplate->panel in asp.net code behind file.
Below is my code.
<asp:GridView ID="GridView2" runat="server" DataKeyNames="nInquiryId" AutoGenerateColumns="False">
<Columns>
<asp:TemplateField>
<HeaderTemplate>
<table width="100%" cellpadding="5" cellspacing="1">
<tr>
<td align="left" style="width: 80px">
<asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="false" CommandName="sort"
CommandArgument="sFName">First Name</asp:LinkButton>
</td>
</tr>
</table>
</HeaderTemplate>
<ItemTemplate>
<asp:Panel ID="PopupMenu" runat="server">
<div style="padding-top: 2px;">
<asp:ImageButton ID="ModifyLnk" runat="server" CommandName="Select" EnableTheming="false"
ImageUrl="~/Admin/Images/edit.png" CausesValidation="false" runat="server" />
</div>
</asp:Panel>
<asp:Panel ID="Panel9" runat="server">
<table width="100%" cellpadding="0" cellspacing="1">
<tr>
<td align="left" style="width: 80px">
<asp:Label ID="lbltitle" runat="server" Text='<%# Eval("sFName")%>'></asp:Label>
</td>
</tr>
</table>
</asp:Panel>
<cc1:HoverMenuExtender ID="hme2" runat="Server" HoverCssClass="popupHover" PopupControlID="PopupMenu"
PopupPosition="Left" TargetControlID="Panel9" PopDelay="25">
</cc1:HoverMenuExtender>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
I want to enable/disable image button in code behind file.
Thanks.