Is it possible to sub-class ascx controls?? If yes, how??
Let me explain why I want to do this. I am working on DotNetNuke, and want to customize how users get registered. There is a User.ascx control in DNN for that. That control has markup for getting data, and public & protected members in code-behind to process the data.
I don't want to customize markup, as that is just fine. However, I would like to override the code-behind members, for some additional processing & validation.
What I have done is to create my control, and inherit its code-behind from the User.ascx.vb code-behind of DNN. But, when I put my control on a page, nothing gets rendered. And when I try to reference controls in the UI of the base User class, they have Null references & I get a NullPointerException.
So, is it possible to inherit from an ascx control, get its markup rendered as is (or additionally appending more markup) to get it rendered as:
...
Go to the complete details ...