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  |  

AppTheory specializes in solutions based on the DotNetNuke platform and has 2 employees on the DotNetNuke Core Team.
  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

Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
 


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
576 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
5026 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.

 


UK - DotNetNuke providers
UK providers of DNN module development and skin package design. Oxford Information Labs provides cost-effective solutions for businesses and organisations specialising in Skin design and bespoke module development.
www.oxil.co.uk
TronixSoft
Hosting for local businesses that want more from their websites.
www.TronixSoft.com
The Forerunner Network
The Forerunner Network consists of a group of Dynamic Website & Interactive Membership Portal hosting services that are managed by Forerunner Communications. Our services span a wide range of markets and enable individuals, organizations and businesses to build and manage dynamic, interactive portals and websites.
The Forerunner Network

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