The first two tests turned out pretty much as I expected.
The ASPX page was properly converted and the codebehind was turned into a partial class.
The User control was properly converted and the codebehind was turned into a complete class
I would have thought this would be a partial class, but it was the complete definition.
The ASPX that inherited from a custom base page didn't fare so well. The page was converted and a partial class
was created. However, the original base page reference was lost and although the page had the Inherits attribute which
pointed to the original base page class name the class wouldn't compile (and obviously none of the custom base page functionality was available).
The Custom User Control that inherits from a base class defined in another assembly had the same issue as the page with a custom base. The original base was lost.
The Custom User Control that inherits from a base class defined in the project worked
- The base class was moved to the code directory
- The codebehind was converted to a partial class
- The page had the Inherits attribute pointed to the base in the code directory
- Major downside was that you can't tell what a partial class is inherited from without some serious digging or looking at that ascx file
|