|
-
Feb 28th, 2012, 02:33 AM
#1
Re: Registering custom / user controls problem
Hello,
The only thing that I can think is that by inheriting from BaseControl, the instantiation of the controls within that UserControl is not happening.
You could try using Page.LoadControl:
http://msdn.microsoft.com/en-us/libr...adcontrol.aspx
To load the BaseControl dynamically, when your control requires it, but this seems a little "messy".
Is there a reason why you are mixing Custom Controls and UserControls? Why not simply have BaseControl as a Control in it's own right, i.e. don't use an ascx at all?
Gary
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|