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

HomeHomeUsing DNN Platf...Using DNN Platf...Language and In...Language and In...How do i bind a Resource File to a custom ascx pageHow do i bind a Resource File to a custom ascx page
Previous
 
Next
New Post
11/2/2009 9:17 AM
 

Im working with dnn modules for a while i dont have any problem handling the resource files of the default pages of a custom module (view, Edit, Settings)

The problem im facing is when i insert another page to the module i.e AddEmployDetails.ascx i go and make a new Resource file at the App_LocalResources folder of my module.

I name the Resource File AddEmployDetails.ascx.resx. The problem is that when i view the page the Resource File is not called.

Except making a Resource File for every new page i insert into a module what else must i do in order for the Resource file to work

is there i call to a dnn method that i must insert in page_load in order to define what Resource File i want to work for the specific page and if yes

what is this call

 

Thanks in advanced

dom

 
New Post
11/2/2009 12:03 PM
 

I assume that you are talking about a user control that is added as a control to your custom user control.

In that case, the file must be named

ControlId.ascx.resx

With the default behavior, if you register the control inside your control it is the id of that control that dictates what the resource file needs to be.

You can see this by looking at the LocalResourceFile property on the control.


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
11/2/2009 2:15 PM
 

Thanks for the reply.

Ok.. i always give the same names to the filename (i.e AddEmployDetails.ascx) and when i add the control to the module (i.e AddEmployDetails) so im correct when i name the ResourceFile AddEmployDetails.ascx.resx .... Right?

When you mean look at the LocalResourceFile property of the control what do you mean?

i.e do you mean  to define at the load_page something like that

LocalResourceFile.ToString() = "AddEmployDetails";

cheers

dom

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Language and In...Language and In...How do i bind a Resource File to a custom ascx pageHow do i bind a Resource File to a custom ascx page


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