Missing Event Handler ... Except it's not

5 posts, 0 answers
  1. Robert
    Robert avatar
    253 posts
    Member since:
    Aug 2007

    Posted 20 Aug 2012 Link to this post

    I really like the JustCode product but sometimes it reports peculiar things that I don't believe to be errors.  Here's one example:

    In the layout code of a User Control I have a button defined as follows:

    <asp:Button ID="buttonNewMuckpileOK" runat="server" Text="OK" Width="60" OnClick="buttonNewMuckpileOK_Click" />

    JustCode is reporting "Event handler not found".  Yet in the User Control's code is this:

        protected void buttonNewMuckpileOK_Click(object sender, EventArgs e)<br>    {<br>      ModalDialogIsActive = false;<br>    }<br>

    And, for the record, everything works fine.  So why am I getting the error message?

    Robert
  2. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 20 Aug 2012 Link to this post

    Does it compile? I often find that JC reports stuff that isn't there. Generally, a build and then a forced refresh of the code analysis sorts it out. -- Stuart
  3. DevCraft banner
  4. Robert
    Robert avatar
    253 posts
    Member since:
    Aug 2007

    Posted 20 Aug 2012 Link to this post

    Stuart, everything compiles and runs perfectly, yet JustCode is reporting this as not so.  Most mysterious.

    Clearly something is wrong with the JustCode business rules and I thought Telerik might like to know.

    Robert
  5. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 20 Aug 2012 Link to this post

    You're right; they do. You'll find any number of times when it gets lost in space. Each one you report is one they can try and fix! -- Stuart
  6. Zdravko
    Admin
    Zdravko avatar
    657 posts

    Posted 23 Aug 2012 Link to this post

    Hi all,

     @Robert 
    I tried to reproduce your issue, but I was not able to.
    Please refresh the code analysis from JustCode menu -> Analysis -> Refresh Code Analysis and check if it is still there.
    If it is, please send us a sample solution that reproduces it.
    Thanks and have a nice day.

    Regards,
    Zdravko
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top
DevCraft banner