Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3780794
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T10:51:39+00:00 2026-05-19T10:51:39+00:00

everyone! I’m writing repeater control on my web-page. After I added data paging for

  • 0

everyone!
I’m writing repeater control on my web-page. After I added data paging for repeater I have got problem:
ImageButton does’nt fire any more OnItemCommand event of repeater. Why?

Here, is part of markup code:

 <asp:Repeater ID="PartsRepeater" runat="server"
                    OnItemCommand="partsRepeater_ItemCommand"
                    OnItemDataBound="partsRepeaterItem_Bound">
                    <HeaderTemplate>
                        <table rules="all" cellspacing="0" style="border-color: rgb(31, 77, 48);
                            border-style: solid; width: 100%; border-collapse: collapse;">
                            <tr >
                                <td style="width: 92%;">
                                    <table cellspacing="0" border="0" style="border-color: rgb(31, 77, 48); border-style: solid;
                                        width: 100%; border-collapse: collapse;">
                                        <tr style="background-color: #1f4d30; color: white;">
                                            <td style="width: 10%;">
                                                <asp:Label runat="server" Text="Name" ID="lblName">
                                                </asp:Label>
                                            </td>
                                            <td style="width: 10%;">
                                                <asp:Label runat="server" Text="Number" ID="Label64">
                                                </asp:Label>
                                            </td>
                                            <td style="width: 10%;">
                                                <asp:Label runat="server" Text="Category" ID="Label65">
                                                </asp:Label>
                                            </td>
                                            <td style="width: 20%;">
                                                <asp:Label runat="server" Text="Description" ID="Label66">
                                                </asp:Label>
                                            </td>
                                            <td style="width: 20%;">
                                                <asp:Label runat="server" Text="Models" ID="Label67">
                                                </asp:Label>
                                            </td>
                                            <td style="width: 5%;">
                                                <asp:Label runat="server" Text="Price" ID="Label68">
                                                </asp:Label>
                                            </td>
                                            <td style="width: 5%;">
                                                <asp:Label runat="server" Text="A Qty" ID="Label69">
                                                </asp:Label>
                                            </td>
                                            <td style="width: 5%;">
                                                <asp:Label runat="server" Text="B Qty" ID="Label70">
                                                </asp:Label>
                                            </td>
                                            <td style="width: 5%;">
                                                <asp:Label runat="server" Text="Actual Qty" ID="Label71">
                                                </asp:Label>
                                            </td>
                                            <td style="width: 5%;">
                                                <asp:Label runat="server" Text="Total Qty" ID="Label72">
                                                </asp:Label>
                                            </td>
                                            <td style="width: 5%;" >
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                <td style="width: 8%;" >
                                </td>
                            </tr>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr style="border-color: #1f4d30;"
                         >
                        <td style="width: 92%;">
                                <table border="0" cellspacing="0" class="PartsRepeater_InnerTable">
                                    <tr class="PartsRepeater_InnerTable">
                                        <td style="cursor: pointer; width: 10%;" class="PartsRepeater_InnerTable">
                                            <asp:HiddenField runat="server" ID="PartID" Value='<%# Bind("PartID") %>' Visible="false" />
                                            <asp:LinkButton runat="server" ID="Label52" Text='<%#Eval("Name").ToString()%>' CommandArgument='<%# Eval("PartID") %>'>
                                            </asp:LinkButton>
                                        </td>
                                        <td style="cursor: pointer; width: 10%;" class="PartsRepeater_InnerTable">
                                            <asp:LinkButton ID="Label45" runat="server" Text='<%#Eval("Number").ToString().ToUpper()%>'
                                                CommandArgument='<%# Eval("PartID") %>'>
                                            </asp:LinkButton>
                                        </td>
                                        <td style="cursor: pointer; width: 20%;" class="PartsRepeater_InnerTable">
                                            <asp:LinkButton ID="Label46" runat="server" Text='<%#Eval("Category").ToString()%>'
                                                CommandArgument='<%# Eval("PartID") %>'>
                                            </asp:LinkButton>
                                        </td>
                                        <td style="cursor: pointer; width: 20%;" class="PartsRepeater_InnerTable">
                                            <asp:LinkButton ID="Label47" runat="server" Text='<%# GetPartDescr((String)Eval("Description"))%>'
                                                CommandArgument='<%# Eval("PartID") %>'>
                                            </asp:LinkButton>
                                        </td>
                                        <td style="cursor: pointer; width: 5%;" class="PartsRepeater_InnerTable">
                                            <asp:LinkButton ID="Label48" runat="server" Text='  <%# GetPartDescr((String)Eval("ModelName")) %>'
                                                CommandArgument='<%# Eval("PartID") %>'>
                                            </asp:LinkButton>
                                        </td>
                                        <td style="cursor: pointer; width: 4%;" class="PartsRepeater_InnerTable">
                                            <asp:LinkButton ID="Label49" runat="server" Text='<%# GetPrice(Eval("Price").ToString(), Eval("sPrice").ToString(), Eval("Price3").ToString())%>'
                                                CommandArgument='<%# Eval("PartID") %>'>
                                            </asp:LinkButton>
                                        </td>
                                        <td style="cursor: pointer; width: 4%;" class="PartsRepeater_InnerTable">
                                            <asp:LinkButton ID="lblAQTY" runat="server" Text=' <%#Eval("AGradeQty").ToString()%>'
                                                CommandArgument='<%# Eval("PartID") %>'>
                                            </asp:LinkButton>
                                        </td>
                                        <td style="cursor: pointer; width: 4%;" class="PartsRepeater_InnerTable">
                                            <asp:LinkButton ID="lblBQty" runat="server" Text=' <%# int.Parse(Eval("QtyInStock").ToString()) - int.Parse(Eval("AGradeQty").ToString())%>'
                                                CommandArgument='<%# Eval("PartID") %>'>
                                            </asp:LinkButton>
                                        </td>
                                        <td style="cursor: pointer; width: 4%;" class="PartsRepeater_InnerTable">
                                            <asp:LinkButton ID="lblActualQTY" runat="server" Text=' <%#Eval("ActualQty").ToString()%>'
                                                CommandArgument='<%# Eval("PartID") %>'>
                                            </asp:LinkButton>
                                        </td>
                                        <td style="cursor: pointer; width: 4%;" class="PartsRepeater_InnerTable"> 
                                            <asp:LinkButton ID="Label60" runat="server" Text='<%#Eval("QtyInStock").ToString()%>'
                                                CommandArgument='<%# Eval("PartID") %>'>
                                            </asp:LinkButton>
                                        </td>
                                    </tr>
                                    <tr >
                                        <td colspan="15" style="cursor: pointer; width: 5%;">
                                            <asp:LinkButton ID="Label63" runat="server" Text='<%#Eval("priceModificationDate").ToString()%>'
                                                Font-Size="Smaller" CommandArgument='<%# Eval("PartID") %>'>
                                            </asp:LinkButton>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td style="width: 8%">
                                <table>
                                    <tr>
                                        <td style="cursor: pointer; width: 50%;" class="PartsRepeater_InnerTable">
                                            <asp:ImageButton ID="btnEdit" runat="server" ImageUrl="~/Images/edit.png" CausesValidation="False"
                                                CommandName="editRow" CommandArgument='<%# Eval("PartID") %>' OnClientClick='SaveScrollPositions'>
                                            </asp:ImageButton>
                                        </td>
                                        <td style="cursor: pointer; width: 50%;">
                                            <asp:ImageButton ID="btnDelete" runat="server" OnClientClick='<%# GetConfirmMessage(Eval("Name"))%>'
                                                ImageUrl="~/Images/delete.png" CausesValidation="False" CommandName="Delete"
                                                CommandArgument='<%# Eval("PartID") %>'></asp:ImageButton>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </ItemTemplate>
                    <FooterTemplate>
                        </table>
                    </FooterTemplate>
                </asp:Repeater>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T10:51:39+00:00Added an answer on May 19, 2026 at 10:51 am

    I’ve tried nany ways to solve this problem and solved it so:
    I just replace ImageButton with linkButton with image:
    Part og code:

    <td style="cursor: pointer; width: 50%;" class="PartsRepeater_InnerTable">
                                                <asp:LinkButton ID="btnEdit" runat="server" CausesValidation="false" CommandName="editRow"
                                                    CommandArgument='<%# Eval("PartID") %>' OnClientClick='SaveScrollPositions'>
                                                    <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/edit.png" />
                                                </asp:LinkButton>
                                            </td>
                                            <td style="cursor: pointer; width: 50%;">
                                                <asp:LinkButton ID="btnDelete" runat="server" CausesValidation="false" CommandName="Delete"
                                                    CommandArgument='<%# Eval("PartID") %>' OnClientClick='<%# GetConfirmMessage(Eval("Name"))%>'>
                                                    <asp:Image ID="Image2" runat="server" ImageUrl="~/Images/delete.png" />
                                                </asp:LinkButton>
                                            </td>
    

    For more see: http://weblogs.asp.net/justinsaraceno/archive/2008/11/05/linkbutton-with-image-and-text.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

everyone I got problem here I need to update a plist data in a
everyone The problem is if there exists two exported components which have the same
everyone. I have problem replacing existing rows in table with new ones. I use
everyone. I'm trying to get data from some page, it's updated using javascript. First,
everyone seems interested in building IPhone apps today. Do you have to have an
everyone. I have some labels that I draw them in the xib file, and
Everyone, I am a newbie to android development. Now I have a question that
everyone, I've started working yesterday on the Euler Project in Clojure and I have
everyone..i want after i type 0203-ED in textfield ...two character behind that text can
Everyone who's done any web application development in Scala knows that you can use

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.