I have a User Control called DialogControlPanel. The partial class for the user control is in the "Controls" namespace. The default namespace for the application is WOU.Apps.WebPortal, so the fully qualified name for the class is WOU.Apps.WebPortal.Controls.DialogControlPanel
I have a webform which contains this User control. The user control is registerd with ...
<%
@ Register Src="../common/controls/DialogControlPanel.ascx" TagName="DialogControlPanel" TagPrefix="uc1" %>
This registration is created automatically when I drag the user control onto the webform.
Everything is fine except the following... the desiger.vb file for the webform creates the following entry
Protected
WithEvents DialogControlPanel1 As Controls.DialogControlPanel
This won't compile because I get a "Type Controls.DialogControlPanel is undefined" error. The webform exists in a separate namespace called "Forums". If I provide the fully qualified definition...
Protected WithEvents DialogControlPanel1 As WOU.Apps.WebPortal.Controls.DialogControlPanel,
then it compiles, however, whenever I make a change to the webform, the designer page is recreated and it once again has the unqualified name. Is this a bug in VS, or is there a way to specify that the designer should declare controls with fully-qualified namespaces?
Thanks,
Al