xpblueScreenOfDeath
Programmer
- Sep 1, 2004
- 87
I have written a couple web controls, but it generates a error if I give it the same prefix; otherwise it runs fine.
For example, I have a login and tab control that uses the same namespace such as xx.myControls. It would generate the the following error message: Could not load type xx.myControls.Login from assembly TabCtrl, Version=1.0.1849.1024, Culture=neutral, PublicKeyToken=null
I register the assemblies as such:
<%@ Register TagPrefix="cc" Namespace="xx.myControls" Assembly="Login"%>
<%@ Register TagPrefix="cc" Namespace="xx.myControls" Assembly="TabCtrl"%>
If I give them different prefixes then the webpage runs fine, such as:
<%@ Register TagPrefix="cc" Namespace="xx.myControls" Assembly="Login"%>
<%@ Register TagPrefix="dd" Namespace="xx.myControls" Assembly="TabCtrl"%>
Do I have to compile all my controls into one assembly to use the same prefix or am I doing something wrong?
For example, I have a login and tab control that uses the same namespace such as xx.myControls. It would generate the the following error message: Could not load type xx.myControls.Login from assembly TabCtrl, Version=1.0.1849.1024, Culture=neutral, PublicKeyToken=null
I register the assemblies as such:
<%@ Register TagPrefix="cc" Namespace="xx.myControls" Assembly="Login"%>
<%@ Register TagPrefix="cc" Namespace="xx.myControls" Assembly="TabCtrl"%>
If I give them different prefixes then the webpage runs fine, such as:
<%@ Register TagPrefix="cc" Namespace="xx.myControls" Assembly="Login"%>
<%@ Register TagPrefix="dd" Namespace="xx.myControls" Assembly="TabCtrl"%>
Do I have to compile all my controls into one assembly to use the same prefix or am I doing something wrong?