Products

Solutions

Resources

Partners

Community

About

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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsStoreStoreResource File Help - PleaseResource File Help - Please
Previous
 
Next
New Post
2/25/2010 8:18 PM
 

I have a resource file problem.  My page is not showing the entered resource information.

Here is a little background of where I am working….

Store Module Source Code.  I’m adding an alternate source for the Shipping and Billing Addresses.  As an option I’ve modified the Store Admin page to include a configuration for the Default Address Admin page DefaultAddressAdmin.ascx

  Address Administration

:

:

:

:

:

:

:

Update Address Settings

All is good with the functionality; however the Help and Text will not show. 

 

My resource file DefaultAddressAdmin.ascx.resx does have matching names

    <tr valign="top">

        <td class="NormalBold" style="width: 150px; white-space: nowrap;">

            <dnn:Label ID="lblShippingOptions" runat="server" ControlName="lstShippingOptions" Suffix=":">

            </dnn:Label>

        </td>

        <td style="vertical-align: top;">

            <asp:DropDownList ID="lstShippingOptions" runat="server" CssClass="Normal" AutoPostBack="False" />

        </td>

    </tr>

 

My resource file exists in the App_LocalResources folder of the same ascx project.  Here is a sample of the data:

 

lblShippingOptions.Help                               Select the Address Option - Visual requires a Valid WebService URL       

lblShippingOptions.Text                                Address Option               

 

 

I feel like I missing something very fundamental, any words of wisdom here? 

 

Thanks – Paul

 

 
New Post
2/26/2010 5:01 AM
 

Correct
… ControlName="lstShippingOptions" …

to
… ControlName="lblShippingOptions" …

and it will work with lblShippingOptions.Text in resource file.
 

 
New Post
2/26/2010 7:03 AM
 

Jan - Thank for the response. 

 

I have changed the control name in the HTML as you suggest, however I still do not see the change.   

Any other suggestions?  Should the RESX file exist in a different directory?

 

As a test, I have dropped the resource file into the Store App_LocalResources along with the sites App_GlobalResources, but still no avail

 

 

Here is the Full HTML Code, along with the Resource File

ASCX

<%@ Control Language="c#" Codebehind="DefaultAddressAdmin.ascx.cs" Inherits="DotNetNuke.Modules.Store.Providers.Address.DefaultAddressProvider.DefaultAdmin"

    AutoEventWireup="True" %>

<%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/LabelControl.ascx" %>

<table cellspacing="5" width="80%" align="center" border="0">

    <tr valign="top">

        <td class="NormalBold" style="width: 150px; white-space: nowrap;">

            <dnn:Label ID="lblShippingOptions" runat="server" ControlName="lblShippingOptions" Suffix=":">

            </dnn:Label>

        </td>

        <td style="vertical-align: top;">

            <asp:DropDownList ID="lstShippingOptions" runat="server" CssClass="Normal" AutoPostBack="False" />

        </td>

    </tr>

    <tr valign="top">

        <td class="NormalBold" style="vertical-align: top; width: 150px; white-space: nowrap;">

            <dnn:Label ID="lblShippingWebService" runat="server" ControlName="txtShippingWebService"

                Suffix=":" />

        </td>

        <td style="vertical-align: top;">

            <asp:TextBox ID="txtShippingWebService" runat="server" CssClass="Normal" Width="100%" />

        </td>

    </tr>

        <tr valign="top">

        <td class="NormalBold" style="vertical-align: top; width: 150px; white-space: nowrap;">

            <dnn:Label ID="lblDatabaseKey" runat="server" ControlName="txtDatabaseKey"

                Suffix=":" />

        </td>

        <td style="vertical-align: top;">

            <asp:TextBox ID="txtDatabaseKey" runat="server" CssClass="Normal" Width="100%" />

        </td>

    </tr>

    <tr valign="top">

        <td class="NormalBold" width="40%">

            <dnn:Label ID="lblAllowAddBilling" runat="server" Suffix=":" ControlName="chkAllowAddBilling" />

        </td>

        <td class="Normal" width="60%">

            <asp:CheckBox ID="chkAllowAddBilling" runat="server" />

        </td>

    </tr>

    <tr valign="top">

        <td class="NormalBold" width="40%">

            <dnn:Label ID="lblAllowEditBilling" runat="server" Suffix=":" ControlName="chkAllowEditBilling" />

        </td>

        <td class="Normal" width="60%">

            <asp:CheckBox ID="chkAllowEditBilling" runat="server" />

        </td>

    </tr>

    <tr valign="top">

        <td class="NormalBold" width="40%">

            <dnn:Label ID="lblAllowAddShipping" runat="server" Suffix=":" ControlName="chkAllowAddShipping" />

        </td>

        <td class="Normal" width="60%">

            <asp:CheckBox ID="chkAllowAddShipping" runat="server" />

        </td>

    </tr>

    <tr valign="top">

        <td class="NormalBold" width="40%">

            <dnn:Label ID="lblAllowEditShipping" runat="server" Suffix=":" ControlName="chkAllowEditShipping" />

        </td>

        <td class="Normal" width="60%">

            <asp:CheckBox ID="chkAllowEditShipping" runat="server" />

        </td>

    </tr>

    <tr>

        <td colspan="2" class="Normal">

            <asp:LinkButton ID="btnSaveAddressSettings" runat="server" resourcekey="btnSaveAddressSettings">Update Address Settings</asp:LinkButton>

        </td>

    </tr>

</table>

 

 

Resource File

chkAllowAddBilling.Help            This option is required to be set for the Standard Cart - False for Visual               

chkAllowAddBilling.Text             Allow NEW Billing Addresses   

lblAllowAddBilling.Help              This option is required to be set for the Standard Cart - False for Visual               

lblAllowAddBilling.Text               Allow NEW Billing Addresses   

lblAllowAddShipping.Help         This option will allow NEW Shipping Addresses              

lblAllowAddShipping.Text          Allow NEW Shipping Addresses              

lblAllowEditBilling.Help              This option is required to be set for the Standard Cart - False for Visual               

lblAllowEditBilling.Text               Allow Billing Address Edit          

lblAllowEditShipping.Help         Allow the user to EDIT existing Shipping Addresses       

lblAllowEditShipping.Text          Allow Shipping Address Edit     

lblDatabaseKey.Help     If using an external WebService, you must define a Trusted Macro Server Credentials Key (example: AA-11-A2-B5-B3-21-40-91-C3-3B-1F-F4-36-AB-4F-2D)               

lblDatabaseKey.Text      Credentials Key               

lblShippingOptions.Help             ffff        

lblShippingOptions.Text              aaa        

lblShippingWebService.Help    Define the URL to an External WebService to control the Address Information - WSDL Must meet WSDL - TBD

lblShippingWebService.Text     WebService URL             

lstShippingOptions.Help             Select the Address Option - Visual requires a Valid WebService URL     

lstShippingOptions.Text              Address Option               

 

 

Thanks again for the help – Paul

 

 
New Post
2/26/2010 10:44 AM
 

Hi Paul,
sorry, I was wrong with my previous advise. Please undo the suggested change.
From your description I understand that you are working on DefaultAddressProvider project. If this is true then your corresponding resource file should be located here:
…/DesktopModules/Store/Providers/AddressProviders/DefaultAddressProvider/App_LocalResources

Which dnn version and store module version are you using?
 

 
New Post
2/26/2010 1:05 PM
 

DNN:   05.02.03 (74)The DotNetNuke application version you are running

Store:   02.01.30 

I am working with the DefaultAddressProvider, and YES that is the location of the resource file. 

…/DotNetNuke_2/DesktopModules/Store/Providers/AddressProviders/DefaultAddressProvider/App_LocalResources/DefaultAddressAdmin.ascx.resx

…/DotNetNuke_2/DesktopModules/Store/Providers/AddressProviders/DefaultAddressProvider/DefaultAddressAdmin.ascx

 

This may be a larger question, but what controls the loading of each Resource File?  Is this an overridden feature in DNN?

 

 Thanks - Paul

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsStoreStoreResource File Help - PleaseResource File Help - Please


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