Hi All,
I have a grid view where in contains image buttons (ID=btnEdit) in every row, when i click on this image button, it suppose to show up an Update Progress loading picture by using Modal Popup Extender.
My problem is when it executing, will throw out an Errow Message which status that TargetControlID="btnEdit" couldn't find. How do trace the ID from grid view? Thank you.
Below here is my code:-
***gvwTransaction
<asp:GridView ID="gvwTransaction" runat="server">
<Columns>
<asp:TemplateField HeaderText="Edit" ShowHeader="False">
<ItemStyle HorizontalAlign="Center" VerticalAlign="Top" Width="21" />
<ItemTemplate>
<asp:ImageButton ID="btnEdit" runat="server" CausesValidation="False" CommandName="Edit"
ImageUrl="~/Images/edit.gif" />
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
***pnlProgress
<asp:Panel ID="pnlProgress" runat="server">
<asp:UpdateProgress ID="UpdateProgress1" AssociatedUpdatePanelID="upCallTrack" runat="server">
<ProgressTemplate>
<div>
<center>
<asp:Image runat="server" ID="ProgressImage" ImageUrl="~/Images/loading1.gif" />
</center>
</div>
</ProgressTemplate>
</asp:UpdateProgress>
</asp:Panel>
***mpeProgress
<ajaxToolkit:ModalPopupExtender ID="mpeProgress" runat="server" TargetControlID="btnEdit"
PopupControlID="pnlProgress">
</ajaxToolkit:ModalPopupExtender>