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.0Custom User EditorCustom User Editor
Previous
 
Next
New Post
6/29/2006 4:47 PM
 

I am creating a custom module for creating and editing users. This consists of several custom controls and some of the existing controls contained within the Core, and I'm putting it all together using AJAX.

My current problem is when I am using the "User" control (~/admin/security/users/user.ascx). It uses the propertyeditorcontrol (DotNetNuke.UI.WebControls.PropertyEditorControl). I am able to get it to load up with existing user information when performing an edit, but what is absent is all of the localization, meaning no labels and no help text.

I've set the showmissingkeys entry to true in the web.config, but still get nothing. I even tried to set the LocalResourceFile property for the controls to see if it needed help in finding the keys, but I may be getting this all wrong. Any suggestions on how to get it to display localized text or atleast set the text through code?

 
New Post
7/4/2006 1:19 AM
 

In your custom module folder you should have an AppLocalResources folder - correct?  Copy the resource files from the core Users folder, and change the file name for the User.ascx.resx to match your control name. Then if you have not changed the ID's (e.g. UserInfo_Email.Text, UserInfo_Email.Validation, plRandom.Help, etc. from the User.ascx control) then the resources will be found.  You should copy from teh User.ascx or other like files and stick to those ID's, since the localization will then work for any languages added - unless you change the items meaning of course. 

Does this help or is it not on track?

 
New Post
7/5/2006 12:41 PM
 

Thanks for your feedback. I do have the resource files and have even desperately stuck copies of darn near every resource file and folder in my module's folder, the ~/admin/users/App_LocalResources and ~/App_GlobalResources folder but no success.

I do get localized values when (not using AJAX) hard coding the control onto the module or by adding through code (like controls.add), but when the control is served through a call back method (using AJAX), I do not get the localized labels.

I could go around this by creating my own User control without localization, but I want to minimize future problems if the user objects change in the future as they had recently and force the upgrade of so many controls. I'm trying the best I can to stick to the core controls.

Here are some more details of my current project...

We are using ComponentArt controls for some areas, which includes their treeview and callback controls.

Visual Studio 2005 is being used for development on Windows XP Professional, and development server is Windows 2003.

The treeview on the left side of the screen displays categories of affiliations based on the logged in user's affiliations and rights (custom database solution). i.e.: Referring Group, Referring Office, Referring Office Dept., Referring Physician, etc...

Upon expanding a node, entities affiliated to the user from that type will display. i.e.: Expanding Referring Physician will display Referring Physicians that the user is linked to.

If the user selects one of the items in the treeview, an AJAX call is made and a list of users linked to that item is returned through a callback.

If the user chooses to edit a user, another AJAX call is made which then performs a callback returning the control to edit the user.

 

I do not believe the Component Art controls are the root of the problem, but I could be wrong. I can try to use the Core functionality for AJAX, but could spend a lot of time to get the same results. We are using the Component Art controls because of the familiarity, ease of use and the "Loading..." display when waiting for the callback to return.

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Custom User EditorCustom User Editor


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