Resource file question

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
2/13/2010 6:28:28 AM
Gravatar
Total Posts 108

Resource file question

Question about resource files:

I copied subscribe.ascx to my own project so as not to fork the code when customising it. I then copied the app_globalresources folder to my project.

I was getting an error about the namespace being ambigious on the resource file, I couldnt see how to change the namespace in my own project or how to just point it at the mojoportal.web project.

What i eventually had to do was create my own resource file, copy the contents of resource into my own, then in subscribe.ascx just rename them all references for example resource.NewsletterEmailWatermark to  BBnewsletter.NewsletterEmailWatermark  BBnewsletter being my own resource file.

I can get around the issue, but thought i'd ask if have had any similar experiences?

Many Thanks

Tim

2/13/2010 6:35:11 AM
Gravatar
Total Posts 18439

Re: Resource file question

You did it the right way, code in your custom project should use resources from your custom project and the resource files you create in your project cannot duplicate names for resource files in other features or they would overwrite one another and cause errors.

Hope it helps,

Joe

2/13/2010 6:49:00 AM
Gravatar
Total Posts 108

Re: Resource file question

ah cool, good to know im doing it the right way, cheers Joe. 

You must sign in to post in the forums. This thread is closed to new posts.