locked
Click-event not firing on image-button in custom control RRS feed

  • Question

  • User923737044 posted

    I use sitecore and have a custom control with an ImageButton:

    <asp:ImageButton ID="button" CssClass="some class" ImageUrl="/images/some.gif" OnClick="MyClickFunction" runat="server" />

    When I click the button, it redirects to the standard layout page (defined in sitecore) without triggering the click-event function. Inserting break-points in code-behind I discovered that no server-side function is fired when the postback occurs.

    Any ideas? How to debug client-side?

    Thursday, June 23, 2011 5:20 AM

Answers

  • User923737044 posted

    Turns out it was Sitecore related. I was missing a folder:

    http://www.jasonlinham.co.uk/2008/09/form-action-defaulting-to-layout.html

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, June 23, 2011 8:43 AM