Quick Fix for Missing Method in ASPX Being Put in Designer File...

Using ReSharper 6.1 EAP, v6.1.0.11493...

I added a server-side control to an ASPX page, for example, a button. I added onclick="btnSubmit_Click" to the tag, which ReSharper highlights in red (which it should).

I hit ALT+ENTER to add the method to the code-behind and instead the method is being put in the asp.designer.cs file.

6 comments
Comment actions Permalink

Hello William,

I'm afraid I wasn't able to reproduce this behavior with the latest build.
Please install the next nightly build when it comes out and let me know if
this problem is not fixed. Thank you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Using ReSharper 6.1 EAP, v6.1.0.11493...

I added a server-side control to an ASPX page, for example, a button.
I added 'onclick="btnSubmit_Click" to the tag, which ReSharper
highlights in red (which it should).

I hit ALT+ENTER to add the method to the code-behind and instead the
method is being put in the asp.designer.cs file.

---
Original message URL:
http://devnet.jetbrains.net/message/5395302#5395302



0
Comment actions Permalink

I installed Build 12309 and the issue is still there.

Update: Installed Build 6.1.2.257 and the issue is still there.

0
Comment actions Permalink

Hello William,

Does this happen in any web application project and with any control? Thank
you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

I installed Build 12309 and the issue is still there.

---
Original message URL:
http://devnet.jetbrains.net/message/5408358#5408358



0
Comment actions Permalink

I've tried it with several different web projects and several different server-side controls. It happens with all of them.

0
Comment actions Permalink

On 14.11.2011 20:03, William Cummings wrote:

I've tried it with several different web projects and several different server-side controls. It happens with all of them.


William, what do you have in ReSharper->Options->Generated Code->Generated file masks settings?
Are *.Designer.cs and *.Designer.vb files over there?
If not, you can add it manually or go to "Manage" button on the bottom-left and then "Reset all settings" .
Does it help?

0
Comment actions Permalink

Wow. Good catch. That was it. For whatever reason, when I installed the first EAP for 6.1 it must have been missing (but it was there in 6.0). I checked my other development machine that has 6.0 on it and those settings were there.

Here is the screenshot of the 6.0 machine:
Capture.PNG

Here is the screenshot of the 6.1 EAP machine:
Capture.JPG

0

Please sign in to leave a comment.