Bug Report B133156
Visible to All Users

Refactoring - "Extract User Control" refactoring does not create code-behind files in a web application project

created 16 years ago

When extracting a part of an ASPX page as user control no codebehind file is created and no code of the related event handlers is extracted.
The litte (help-)hint that is shown when selecting the refactoring says: "Creates a user control from the selected block including content and dependant code"
Tested only with a VisualBasic based solution!
Tested it with a web application project (no website)
Steps to Reproduce:
Mark some ASPX code in the editor and select the refactoring "ExtractUserControl"
Actual Results:
Refactor creates an ASCX file that contains the selected block from the original ASPX page. No code behind file is created. Nothing of the underlying code (event handlers) is extracted.
Expected Results:
A code behind file with the eventhandlers used in the original selected block should be created.

Show previous comments (7)

    Any news on this issue?
    Timeframe?

    DevExpress Support Team 16 years ago

      Hi Ralf,
      Unfortunately, we haven't yet fixed this problem, and I'm afraid we can't provide you with a time frame in which it will be fixed, as this depends on a number of factors. I do understand that this problem is vital to you, and I'll ask our developers to fix this problem as soon as possible, if this is feasible. Please bear with us.
      Thanks,
      Vito

        Tested it with the latest download - Works as expected!

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.