Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Skin object wonSkin object won't load resource files
Previous
 
Next
New Post
10/24/2008 3:47 PM
 
Hi,

I just developed a skin object, which used dnn label control, but found the resource files won't load. Any suggestion?

Thanks.
 
New Post
10/25/2008 5:01 AM
 

You may try to set it manually by using the following code in page load:

Ex: if your skin object using a user control called mycontrol.ascx then you just need to add the following code (C#)

string resourceFile = this.LocalResourceFile + "mycontrol";
this.LocalResourceFile = resourceFile;

this.LocalResourceFile => refer to where the current object need to find its resources.

 
New Post
10/27/2008 10:39 AM
 

Thanks, Andy.  But I could not get LocalResourceFile property from my control.  Am I missing some namespaces? 

 
New Post
10/27/2008 11:48 PM
 

Just make sure you change the inheritance to Inherits Entities.Modules.PortalModuleBase instead of Inherits System.Web.UI.UserControl

in your behind code (user control .ascx).
 

Hope this help.

 
New Post
10/28/2008 8:59 AM
 

I tried to use Entities.Modules.PortalModuleBase as you said, it did not work.  And as I am  developing a skin object, not module, should I inherit PortalModuleBase? 

My skin object has an email icon, which when clicked will generate a modal popup.  The modal popup has a simple form for users to input their names, recipient email addresses, etc.  I used DNN label control here for the field titles.  If I change this to a module (which inherit portalmodulebase), the resource file works fine.  But module is not ideal as it is to be used on every page. 

 

 

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Skin object wonSkin object won't load resource files


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, 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 DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out