Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

Engage Software - Training Partner for DotNetNuke
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Iron Speed Designer is a software development tool for building database, reporting, and forms applications for .NET without hand-coding.
 


  Sponsors  

Meet Our Sponsors

Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
MadCap Software, Inc.
AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
Click here to go to dev.live.com for Windows Live developer resources
SteadyRain
DataSprings - Great Ideas. Always Flowing.
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Localize It! (L...  Custom server control RESX file location
Previous Previous
 
Next Next
New Post 3/3/2008 10:21 AM
User is offline William Severance
582 posts
www.wesnetdesigns.com
8th Ranked




Custom server control RESX file location 

I am nearing completion on my image editing and upload custom server control and am wondering where best to place the localization (resx) file.  As this is a custom server control (no .ascx file) rather than a usercontrol and since I anticipate it will be used in any number of modules by multiple developers I cannot find in the localization documentation nor in forum searches the best practices for placement of the resx file.  In testing, I have simply placed it in the App_LocalResources folder of my test module's folder.

Several choices for location come to mind. Please advise your recommendations:

  1. Add the localization keys and values to the SharedResources.resx located in the site's App_GlobalResources folder. This is where many of the framework control's localization values are kept. I feel, however that this file (as well as GlobalResources.resx in the same folder) should be reserved for use by core controls only.
  2. Add the localization file (WESNet_ImageEditorControl.resx) to the App_GlobalResources folder.  This would be my #2 choice, but I need to know if the App_GlobalResources folder should be reserved for core localization only.
  3. Add the localization file to the site's controls/App_LocalResources folder. Most of the core usercontrols place their localization files in this folder. This would be my #1 choice, but I am concerned if this folder should be reserved for core control localization only.
  4. Add the localization file to a new sub-folder in the site's Resources folder.  Although this would seem a good choice I don't see any other localization files there.

Since I can code the server control to reference the localization file from just about anywhere, let's hear your suggestions. BTW, when ready, the control source and demo/test module will be released as an open source project on Forge/CodePlex.


Bill, WESNet Designs
 
New Post 3/4/2008 6:39 AM
User is offline Mitch Sellers
5053 posts
www.mitchelsellers.com
3rd Ranked




Re: Custom server control RESX file location 

Bill,

I am not sure that there really is a "standard" for this.  I personally like keeping the files inside the App_LocalResources folder for my specific module....but it really depends on the specific implementation.

I would caution against placing files in areas where the core puts files, just as an overall best practice.  In my opinion anyway.


-Mitchel Sellers
MCITP, MCPD, MCTS
Director of Development
IowaComputerGurus Inc.
View Mitchel Sellers's profile on LinkedIn

Visit mitchelsellers.com for DotNetNuke tutorials, modules and technical help

Custom DotNetNuke Services Available (Development, etc).

My sites are hosted with 3Essentials
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Localize It! (L...  Custom server control RESX file location
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Smart-Thinker
DNN Modules for Social Networks for as low as $69 for 6 modules! We also maintain the DotNetNuke Directory - http://DNNDir.com
www.smart-thinker.com
DNN Photo Gallery
Complete Photo Gallery Management!
www.dnnPhotoGallery.com
R2i - Delivering Serious DNN Services & Solutions
Award Winning Design, Skin construction, Custom Modules and Consulting Services for the Enterprise organization. R2i is the DNN:Map module Project Lead and one of the largest DNN service providers with offices in New York City, Virginia and Baltimore.
www.bi4ce.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP