This is a migrated thread and some comments may be shown as answers.

Missing Event Handler ... Except it's not

4 Answers 82 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Robert
Top achievements
Rank 1
Robert asked on 20 Aug 2012, 05:58 PM
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

4 Answers, 1 is accepted

Sort by
0
Stuart Hemming
Top achievements
Rank 2
answered on 20 Aug 2012, 10:28 PM
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
0
Robert
Top achievements
Rank 1
answered on 20 Aug 2012, 10:54 PM
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
0
Stuart Hemming
Top achievements
Rank 2
answered on 20 Aug 2012, 11:10 PM
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
0
Zdravko
Telerik team
answered on 23 Aug 2012, 01:23 PM
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.

Tags
General Discussions
Asked by
Robert
Top achievements
Rank 1
Answers by
Stuart Hemming
Top achievements
Rank 2
Robert
Top achievements
Rank 1
Zdravko
Telerik team
Share this question
or