"Create method" quickfix in ASPX file should add method to code-behind

When I add an event handler to a tag in an ASPX file, Resharper correctly
highlights the method name in red because the method does not exist. ALT+ENTER
shows the quick fix to create the method. Cool. But using the quick fix adds
the method to the ASPX file, not the code behind file. Is there anyway we
can get the quick fix to add the event handler in the code behind file where
it belongs?

Thanks.


1 comment
Comment actions Permalink

Hello David,

We have fixed that behaviour in version 3.0. In version 2.5 there is no way
to achieve that. We will consider incorporating fix for 3.0 in one of the
bug-fix updates for version 2.5.

When I add an event handler to a tag in an ASPX file, Resharper
correctly highlights the method name in red because the method does
not exist. ALT+ENTER shows the quick fix to create the method. Cool.
But using the quick fix adds the method to the ASPX file, not the code
behind file. Is there anyway we can get the quick fix to add the event
handler in the code behind file where it belongs?

Thanks.

Best regards,
Andrey Simanovsky


0

Please sign in to leave a comment.