T
Tim_Mac
hi,
i have an aspx page, which loads a user control dynamically. (by the
way i don't have any problems using namespaces in C# web projects, this
seems to be just a VB thing).
the user control is in a sub-directory, and i cannot refer to the type
of the control to access its properties and methods. when i move the
control to the root directory then it works fine. this happens without
any use of namespaces.
i tried adding specified namespaces to the page and usercontrol it
still doesn't work, i cannot even import the user control namespace
from within the code behind of the page. all the classes are marked
public, and i have tried all sorts of combinations with the same
namespaces, different namespace for the subfolder etc. but it always
ends up the same. when i recompile the project, it says "Type 'xyz' is
not defined".
any ideas why this is so unreasonably difficult?
thanks
tim
i have an aspx page, which loads a user control dynamically. (by the
way i don't have any problems using namespaces in C# web projects, this
seems to be just a VB thing).
the user control is in a sub-directory, and i cannot refer to the type
of the control to access its properties and methods. when i move the
control to the root directory then it works fine. this happens without
any use of namespaces.
i tried adding specified namespaces to the page and usercontrol it
still doesn't work, i cannot even import the user control namespace
from within the code behind of the page. all the classes are marked
public, and i have tried all sorts of combinations with the same
namespaces, different namespace for the subfolder etc. but it always
ends up the same. when i recompile the project, it says "Type 'xyz' is
not defined".
any ideas why this is so unreasonably difficult?
thanks
tim