c# - asp.net website project not able to pickup namespaces from dll -


i working on moving appcode website project seperate dll, after have moved them , compiled, there frontend controls reference classes in appcode not able pick classes anymore after appcode moved anotehr dll, needed add line on top of ascx files says <%@ import namespace="class.name" %> in each , every single file references class, tehre better way? how come doesn't automatically recognize classes in dlls?

add web.config (see namespaces)

example:

<system.web> <pages>   <namespaces>     <add namespace="system.io" />     <add namespace="system.text" />     <add namespace="westwind.utilities" />     <add namespace="westwind.web.controls" />   </namespaces>   <controls>     <add tagprefix="asp" namespace="system.web.ui" assembly="system.web.extensions, version=3.5.0.0, culture=neutral, publickeytoken=31bf3856ad364e35" />     <add tagprefix="asp" namespace="system.web.ui.webcontrols" assembly="system.web.extensions, version=3.5.0.0, culture=neutral, publickeytoken=31bf3856ad364e35" />     <add tagprefix="ww" namespace="westwind.web.controls" assembly="westwind.web" />   </controls> </pages> 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -