CodeVerge.Net Beta


   Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > Asp.Net Forum > starter_kits_and_source_projects.dotnetnuke.custom_modules Tags:
Item Type: Date Entered: 12/7/2005 8:57:04 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 2 Views: 73 Favorited: 0 Favorite
3 Items, 1 Pages 1 |< << Go >> >|
"wcaterino" <>
NewsGroup User
How do I use LocalizeControlTitle?12/7/2005 8:57:04 PM

0

I want to localize the page titles in my module.  How do you use LocalizeControlTitle?  I tried putting it in the page load event like this:

Localization.LocalizeControlTitle("ControlTitle", LocalResourceFile, "Edit")

with this data in my resource file:

<data name="ControlTitle.Text">
   
<value>PAGE TITLE</value>
</data>

And got the following error:

DotNetNuke.Services.Exceptions.ModuleLoadException: Length cannot be less than zero. Parameter name: length ---> System.ArgumentOutOfRangeException: Length cannot be less than zero. Parameter name: length at System.String.Substring(Int32 startIndex, Int32 length) at DotNetNuke.Services.Localization.Localization.LocalizeControlTitle(String ControlTitle, String ControlSrc, String Key) in C:\Inetpub\wwwroot\dnn320\components\Localization\Localization.vb:line 1193 at MY_MODULE.Page_Load(Object sender, EventArgs e) in C:\Inetpub\wwwroot\dnn320\DesktopModules\MY_MODULE_DIR\MY_MODULE.ascx.vb:line 33 --- End of inner exception stack trace ---

 

Thanks for the help!

Bill

"leupold" <>
NewsGroup User
Re: How do I use LocalizeControlTitle?12/8/2005 10:28:36 AM

0

Have a look at the core modules, how to localize control titles. In short they need a key in your resourcefile named ControlTitle_<key>.Text, whrere <key> is replaced with the appropriate key in lower caps!
Sebastian Leupold
gamma concept mbH

DeutschNetNuke = DotNetNuke in German

DNN Project UserDefinedTable
"wcaterino" <>
NewsGroup User
Re: How do I use LocalizeControlTitle?12/8/2005 4:05:51 PM

0

Sorry, I seem to be missing the concept.  Using LocalizeControlTitle like I did above:

Localization.LocalizeControlTitle("ControlTitle", LocalResourceFile, "Edit")

Where ControlTitle = "ControlTitle", ControlSrc = LocalResourceFile, and Key = "Edit"

I changed the entry in my resource file to add the Key as you stated like so:

<data name="ControlTitle_Edit.Text">
   
<value>PAGE TITLE</value>
</data>

I still get the error.  Am I calling it from the correct place (PageLoad event)?

3 Items, 1 Pages 1 |< << Go >> >|


Free Download:













obtaining nt user details

using loginname across my site

asp.net 1.1 problem of file access in writing

anonymous -> authenticated profile migration

access databases in medium trust

anonymous identification

not kept logged in

multiple login pages

is there a easy way to make passwordrecovery to support retrieve by email? thanks

asp.net 2.0 login control

formsauthenticationticket.expiration value changing

authorized role management

database procedures, why?

setting up ssl on the server

the parameter 'username' must not contain commas.

examples of 'medium' or 'high' trust asp.net applications

authentication fails after virtual directory change

using manage roles in web admin results thrown an exception

.net obfucscation? any recommendations?

need experts: timeout will never expired if the formsauthenticationticket's expiration time is being assigned ...

impersonation for a console app

after login direct to specific page

url rewriting security pitfalls

disabling forms authentication for some pages.

security policy setting for aspnet user in .net 1.1

view other users profile properties

basic windows authentication

debugging forms authentication

protect folders

.net 2.0 service generates 401 error when access from 1.1 client

open page in password protected folder

how to use getauthcookie?

login the user after he creates an account

authentication for pictures?

how to use same login control for admin and user login?

remember me check box 2.0 membership not working

forms authentication in ie6 and isa server

passwordrecovery control issues

my hosting company

need to access a protected aspx document with web client

protecting connection strings on shared host

question regarding roles/memberships - populate on application.start()

encryption

login failed for user 'mianz\aspnet'

managing access rules without using folders

same membership database, different users for different sites

frustrating file access problem

help me in writing nt authentication using active directory in asp.net (c#)

regarding cookieless formsauthentication

access database

   
  Privacy | Contact Us
All Times Are GMT