S
Samuel
Hi,
I am building a custom control for a Web Application in ASP.NET 2.0 that
makes use of the name space "Resources" for localization
(app_globalresources) by adding this to the top of the customcontrol.vb file
in the app_code directory:
Imports Resources
However, when I move the file to a project of its own, the reference to
Resources cannot work anymore for understandable reasons since resources is
not part of the project. How do I make use of the global resource of the web
application for the custom control?
Do I have to create a resource for the custom control? I want to keep
localization in one place though.
Do I have to leave the custom control in App_Code if I want localization to
be in one place?
Please let me know if it is possible.
I am building a custom control for a Web Application in ASP.NET 2.0 that
makes use of the name space "Resources" for localization
(app_globalresources) by adding this to the top of the customcontrol.vb file
in the app_code directory:
Imports Resources
However, when I move the file to a project of its own, the reference to
Resources cannot work anymore for understandable reasons since resources is
not part of the project. How do I make use of the global resource of the web
application for the custom control?
Do I have to create a resource for the custom control? I want to keep
localization in one place though.
Do I have to leave the custom control in App_Code if I want localization to
be in one place?
Please let me know if it is possible.