Cannot resolve symbol OnClick

I am using VS 2008 Beta 2 and I have installed Resharper for 3.0.2 for VS 2008. In an aspx page:


<asp:Button ID="btnCreateUser" runat="server" Text="Create User" OnClick="btnCreateUser_Click" />

I have the protected void btnCreateUser_Click(object sender, EventArgs e){} in the code behind.

Why is that error message displaying?

Thanks

0
8 comments
Avatar
Permanently deleted user

I cannot reproduce the problem. Could you send us the whole solution
consisting the following: the web page in question, its code-behind(s) and
web.config?

Thanks in advance.

--
Sergey V. Coox
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


0
Avatar
Permanently deleted user

I decided to remove ReSharper since the link expression support is not working yet. I will wait for the full version.

Thanks

0

Just began to get exactly the same problem with VS2008 RTM and Build 3.0.563

Cannot resolve symbol 'OnClick' comes up as an error for <asp:LinkButton>

Created a new form, put on only a <asp:Linkbutton> and problem reoccurs.

What if anything might be stuffing up in the web.config to cause this?

0

Ok I found the following.

This issue is occuring in 3.1.567.11

It appears to occur when the web.config contains the following line:

.. .. ]]>

Removing the ajax control prefix from web.config returns the OnClick functionality (as well as other eventing information back to the IDE.

0

Also as a workaround to the above, leaving the line in there but changing the tagprefix to "aspajax" also seems to work around the issue. Of course you would have to go and update all your ajax prefixes in code.

0

Hello,

We appreciate your feedback.

The corresponding JIRA request has been created, and you are welcome to monitor
its status at http://www.jetbrains.net/jira/browse/RSRP-57158.

Best regards,
- Development Team.


0
Avatar
Permanently deleted user

Could you send us the whole website for investigation?

--
Sergey V. Coox
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


0
Avatar
Permanently deleted user

The problem cannot be reproduced in the most recent nightly build #597. You
may download it from
http://www.jetbrains.net/confluence/display/ReSharper/Nightly+Builds

--
Sergey V. Coox
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"jafin" <no_replay@jetbrains.com> wrote in message
news:26422626.1201879059126.JavaMail.itn@is.intellij.net...

Just began to get exactly the same problem with VS2008 RTM and Build
3.0.563

>

Cannot resolve symbol 'OnClick' comes up as an error for <asp:LinkButton>

>

Created a new form, put on only a <asp:Linkbutton> and problem reoccurs.

>

What if anything might be stuffing up in the web.config to cause this?



0

Please sign in to leave a comment.