Localized custom control
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngcontrolsvb' list.


Martin Oliver Madsen
Hi,

I have been looking at the tutorials at asp.net, regarding localized
customs controls.

The senario is like the following.

I place my custom control on a webform and based on the current set
CurrentUICulture the text on the button or the label is shown in the
right language.

Se the localized control here:
http://www.dotnetjunkies.com/QuickStart/aspplus/default.aspx?url=/quicks
tart/aspplus/doc/resourcefiles.aspx

Has anyone been able to make this work ??

After compiling the control with vbc and attaching the resource, I am
only able to show the default/natual resource keys, and not my localized
resources.

Does anyone have some input on this ??

Thanks

/Oliver

Reply to this message...
 
    
Ollie Cornes

Hi Oliver,

I wrote an article recently that covers writing controls that localize their
content, maybe it'll help you out.

Part 1
http://www.devx.com/dotnet/articles/oc022102/oc022102-1.asp

Part 2
http://www.devx.com/dotnet/articles/oc022102/Part2/oc040302-1.asp

The article has a download (look on the right of the page) and that includes
some controls that localize their output. You'll probably also need to set
the culture
in the global.asax file depending on the browser setting or a cookie.

Does that help?

Ollie
--
http://www.RichTextBox.com
The easy way to add formatted text editing to your ASP.NET web site

----- Original Message -----
From: "Martin Oliver Madsen" <Click here to reveal e-mail address>
To: "aspngcontrolsvb" <Click here to reveal e-mail address>
Sent: Saturday, April 20, 2002 10:17 PM
Subject: [aspngcontrolsvb] Localized custom control

[Original message clipped]

Reply to this message...
 
    
Martin Oliver Madsen
Hi Ollie,

Thank you for your reply.

I resently read your article.

Your server control is quit similar to what I am trying to accomplish,
except that I would like to use resource files instead of using a
database to store my localized content.

Have you had any experience in using resource files in your server
controls, instead of using a database ?

Thanks,
/Martin

-----Original Message-----
From: Ollie Cornes [mailto:Click here to reveal e-mail address]
Sent: 21. april 2002 13:32
To: aspngcontrolsvb
Subject: [aspngcontrolsvb] Re: Localized custom control

Hi Oliver,

I wrote an article recently that covers writing controls that localize
their
content, maybe it'll help you out.

Part 1
http://www.devx.com/dotnet/articles/oc022102/oc022102-1.asp

Part 2
http://www.devx.com/dotnet/articles/oc022102/Part2/oc040302-1.asp

The article has a download (look on the right of the page) and that
includes
some controls that localize their output. You'll probably also need to
set
the culture
in the global.asax file depending on the browser setting or a cookie.

Does that help?

Ollie
--
http://www.RichTextBox.com
The easy way to add formatted text editing to your ASP.NET web site

----- Original Message -----
From: "Martin Oliver Madsen" <Click here to reveal e-mail address>
To: "aspngcontrolsvb" <Click here to reveal e-mail address>
Sent: Saturday, April 20, 2002 10:17 PM
Subject: [aspngcontrolsvb] Localized custom control

[Original message clipped]

| [aspngcontrolsvb] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngcontrolsvb.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

Reply to this message...
 
    
Martin Oliver Madsen
Should the download link be on the right side of the article, under the
heading "Resources" ? I can=B4t find it anywhere

Thanks,
/Martin

-----Original Message-----
From: Ollie Cornes [mailto:Click here to reveal e-mail address]=20
Sent: 21. april 2002 13:32
To: aspngcontrolsvb
Subject: [aspngcontrolsvb] Re: Localized custom control

Hi Oliver,

I wrote an article recently that covers writing controls that localize
their
content, maybe it'll help you out.

Part 1
http://www.devx.com/dotnet/articles/oc022102/oc022102-1.asp

Part 2
http://www.devx.com/dotnet/articles/oc022102/Part2/oc040302-1.asp

The article has a download (look on the right of the page) and that
includes
some controls that localize their output. You'll probably also need to
set
the culture
in the global.asax file depending on the browser setting or a cookie.

Does that help?

Ollie
--
http://www.RichTextBox.com
The easy way to add formatted text editing to your ASP.NET web site

----- Original Message -----
From: "Martin Oliver Madsen" <Click here to reveal e-mail address>
To: "aspngcontrolsvb" <Click here to reveal e-mail address>
Sent: Saturday, April 20, 2002 10:17 PM
Subject: [aspngcontrolsvb] Localized custom control

[Original message clipped]

s
[Original message clipped]

| [aspngcontrolsvb] member Click here to reveal e-mail address =3D YOUR ID
| http://www.asplists.com/asplists/aspngcontrolsvb.asp =3D JOIN/QUIT
| http://www.asplists.com/search =3D SEARCH Archives

Reply to this message...
 
    
Martin Oliver Madsen
Hi Ollie,

Sorry, my mistake. I must have missed your last page.

Thanks,
/Oliver

-----Original Message-----
From: Ollie Cornes [mailto:Click here to reveal e-mail address]
Sent: 21. april 2002 13:32
To: aspngcontrolsvb
Subject: [aspngcontrolsvb] Re: Localized custom control

Hi Oliver,

I wrote an article recently that covers writing controls that localize
their
content, maybe it'll help you out.

Part 1
http://www.devx.com/dotnet/articles/oc022102/oc022102-1.asp

Part 2
http://www.devx.com/dotnet/articles/oc022102/Part2/oc040302-1.asp

The article has a download (look on the right of the page) and that
includes
some controls that localize their output. You'll probably also need to
set
the culture
in the global.asax file depending on the browser setting or a cookie.

Does that help?

Ollie
--
http://www.RichTextBox.com
The easy way to add formatted text editing to your ASP.NET web site

----- Original Message -----
From: "Martin Oliver Madsen" <Click here to reveal e-mail address>
To: "aspngcontrolsvb" <Click here to reveal e-mail address>
Sent: Saturday, April 20, 2002 10:17 PM
Subject: [aspngcontrolsvb] Localized custom control

[Original message clipped]

| [aspngcontrolsvb] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngcontrolsvb.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

Reply to this message...
 
    
Ollie Cornes

Hi Martin,

The download includes a control that uses resource files too. Here's the
link:
http://www.devx.com/dotnet/articles/oc022102/Part2/localization.zip

The server control that renders the smaller pieces of text on the page (like
the copyright
message) is rendered from a resource file.

Ollie
--
http://www.RichTextBox.com
The easy way to add formatted text editing to your ASP.NET web site

----- Original Message -----
From: "Martin Oliver Madsen" <Click here to reveal e-mail address>
To: "aspngcontrolsvb" <Click here to reveal e-mail address>
Sent: Sunday, April 21, 2002 5:17 PM
Subject: [aspngcontrolsvb] Re: Localized custom control

Should the download link be on the right side of the article, under the
heading "Resources" ? I can´t find it anywhere

Thanks,
/Martin

-----Original Message-----
From: Ollie Cornes [mailto:Click here to reveal e-mail address]
Sent: 21. april 2002 13:32
To: aspngcontrolsvb
Subject: [aspngcontrolsvb] Re: Localized custom control

Hi Oliver,

I wrote an article recently that covers writing controls that localize
their
content, maybe it'll help you out.

Part 1
http://www.devx.com/dotnet/articles/oc022102/oc022102-1.asp

Part 2
http://www.devx.com/dotnet/articles/oc022102/Part2/oc040302-1.asp

The article has a download (look on the right of the page) and that
includes
some controls that localize their output. You'll probably also need to
set
the culture
in the global.asax file depending on the browser setting or a cookie.

Does that help?

Ollie
--
http://www.RichTextBox.com
The easy way to add formatted text editing to your ASP.NET web site

----- Original Message -----
From: "Martin Oliver Madsen" <Click here to reveal e-mail address>
To: "aspngcontrolsvb" <Click here to reveal e-mail address>
Sent: Saturday, April 20, 2002 10:17 PM
Subject: [aspngcontrolsvb] Localized custom control

[Original message clipped]

| [aspngcontrolsvb] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngcontrolsvb.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

| [aspngcontrolsvb] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngcontrolsvb.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

Reply to this message...
 
    
Martin Oliver Madsen
Hi Ollie,

This is the greatest. You have no idea how long I have been dealing with
this problem.

Thank you very much !!

/Oliver

-----Original Message-----
From: Ollie Cornes [mailto:Click here to reveal e-mail address]=20
Sent: 21. april 2002 21:32
To: aspngcontrolsvb
Subject: [aspngcontrolsvb] Re: Localized custom control

Hi Martin,

The download includes a control that uses resource files too. Here's the
link:
http://www.devx.com/dotnet/articles/oc022102/Part2/localization.zip

The server control that renders the smaller pieces of text on the page
(like
the copyright
message) is rendered from a resource file.

Ollie
--
http://www.RichTextBox.com
The easy way to add formatted text editing to your ASP.NET web site

----- Original Message -----
From: "Martin Oliver Madsen" <Click here to reveal e-mail address>
To: "aspngcontrolsvb" <Click here to reveal e-mail address>
Sent: Sunday, April 21, 2002 5:17 PM
Subject: [aspngcontrolsvb] Re: Localized custom control

Should the download link be on the right side of the article, under the
heading "Resources" ? I can=B4t find it anywhere

Thanks,
/Martin

-----Original Message-----
From: Ollie Cornes [mailto:Click here to reveal e-mail address]
Sent: 21. april 2002 13:32
To: aspngcontrolsvb
Subject: [aspngcontrolsvb] Re: Localized custom control

Hi Oliver,

I wrote an article recently that covers writing controls that localize
their
content, maybe it'll help you out.

Part 1
http://www.devx.com/dotnet/articles/oc022102/oc022102-1.asp

Part 2
http://www.devx.com/dotnet/articles/oc022102/Part2/oc040302-1.asp

The article has a download (look on the right of the page) and that
includes
some controls that localize their output. You'll probably also need to
set
the culture
in the global.asax file depending on the browser setting or a cookie.

Does that help?

Ollie
--
http://www.RichTextBox.com
The easy way to add formatted text editing to your ASP.NET web site

----- Original Message -----
From: "Martin Oliver Madsen" <Click here to reveal e-mail address>
To: "aspngcontrolsvb" <Click here to reveal e-mail address>
Sent: Saturday, April 20, 2002 10:17 PM
Subject: [aspngcontrolsvb] Localized custom control

[Original message clipped]

s
[Original message clipped]

| [aspngcontrolsvb] member Click here to reveal e-mail address =3D YOUR ID
| http://www.asplists.com/asplists/aspngcontrolsvb.asp =3D JOIN/QUIT
| http://www.asplists.com/search =3D SEARCH Archives

| [aspngcontrolsvb] member Click here to reveal e-mail address =3D YOUR ID
| http://www.asplists.com/asplists/aspngcontrolsvb.asp =3D JOIN/QUIT
| http://www.asplists.com/search =3D SEARCH Archives

| [aspngcontrolsvb] member Click here to reveal e-mail address =3D YOUR ID
| http://www.asplists.com/asplists/aspngcontrolsvb.asp =3D JOIN/QUIT
| http://www.asplists.com/search =3D SEARCH Archives

Reply to this message...
 
    
Martin Oliver Madsen
Last question Ollie :)

If I should set up a project and copy the files from your source, what
should I then name my project so it fits your naming ? Localization or
Multilangual ?

Thanks
/Oliver

-----Original Message-----
From: Martin Oliver Madsen [mailto:Click here to reveal e-mail address]=20
Sent: 21. april 2002 21:58
To: aspngcontrolsvb
Subject: [aspngcontrolsvb] Re: Localized custom control

Hi Ollie,

This is the greatest. You have no idea how long I have been dealing with
this problem.

Thank you very much !!

/Oliver

-----Original Message-----
From: Ollie Cornes [mailto:Click here to reveal e-mail address]=20
Sent: 21. april 2002 21:32
To: aspngcontrolsvb
Subject: [aspngcontrolsvb] Re: Localized custom control

Hi Martin,

The download includes a control that uses resource files too. Here's the
link:
http://www.devx.com/dotnet/articles/oc022102/Part2/localization.zip

The server control that renders the smaller pieces of text on the page
(like
the copyright
message) is rendered from a resource file.

Ollie
--
http://www.RichTextBox.com
The easy way to add formatted text editing to your ASP.NET web site

----- Original Message -----
From: "Martin Oliver Madsen" <Click here to reveal e-mail address>
To: "aspngcontrolsvb" <Click here to reveal e-mail address>
Sent: Sunday, April 21, 2002 5:17 PM
Subject: [aspngcontrolsvb] Re: Localized custom control

Should the download link be on the right side of the article, under the
heading "Resources" ? I can=B4t find it anywhere

Thanks,
/Martin

-----Original Message-----
From: Ollie Cornes [mailto:Click here to reveal e-mail address]
Sent: 21. april 2002 13:32
To: aspngcontrolsvb
Subject: [aspngcontrolsvb] Re: Localized custom control

Hi Oliver,

I wrote an article recently that covers writing controls that localize
their
content, maybe it'll help you out.

Part 1
http://www.devx.com/dotnet/articles/oc022102/oc022102-1.asp

Part 2
http://www.devx.com/dotnet/articles/oc022102/Part2/oc040302-1.asp

The article has a download (look on the right of the page) and that
includes
some controls that localize their output. You'll probably also need to
set
the culture
in the global.asax file depending on the browser setting or a cookie.

Does that help?

Ollie
--
http://www.RichTextBox.com
The easy way to add formatted text editing to your ASP.NET web site

----- Original Message -----
From: "Martin Oliver Madsen" <Click here to reveal e-mail address>
To: "aspngcontrolsvb" <Click here to reveal e-mail address>
Sent: Saturday, April 20, 2002 10:17 PM
Subject: [aspngcontrolsvb] Localized custom control

[Original message clipped]

s
[Original message clipped]

| [aspngcontrolsvb] member Click here to reveal e-mail address =3D YOUR ID
| http://www.asplists.com/asplists/aspngcontrolsvb.asp =3D JOIN/QUIT
| http://www.asplists.com/search =3D SEARCH Archives

| [aspngcontrolsvb] member Click here to reveal e-mail address =3D YOUR ID
| http://www.asplists.com/asplists/aspngcontrolsvb.asp =3D JOIN/QUIT
| http://www.asplists.com/search =3D SEARCH Archives

| [aspngcontrolsvb] member Click here to reveal e-mail address =3D YOUR ID
| http://www.asplists.com/asplists/aspngcontrolsvb.asp =3D JOIN/QUIT
| http://www.asplists.com/search =3D SEARCH Archives

| [aspngcontrolsvb] member Click here to reveal e-mail address =3D YOUR ID
| http://www.asplists.com/asplists/aspngcontrolsvb.asp =3D JOIN/QUIT
| http://www.asplists.com/search =3D SEARCH Archives

Reply to this message...
 
    
Ollie Cornes

If you call the web application "Multilingual", it will be much, much easier
to get it up and running as there's less renaming of existing members to do.

Ollie
--
http://www.RichTextBox.com
The easy way to add formatted text editing to your ASP.NET web site

----- Original Message -----
From: "Martin Oliver Madsen" <Click here to reveal e-mail address>
To: "aspngcontrolsvb" <Click here to reveal e-mail address>
Sent: Sunday, April 21, 2002 10:46 PM
Subject: [aspngcontrolsvb] Re: Localized custom control

Last question Ollie :)

If I should set up a project and copy the files from your source, what
should I then name my project so it fits your naming ? Localization or
Multilangual ?

Thanks
/Oliver

-----Original Message-----
From: Martin Oliver Madsen [mailto:Click here to reveal e-mail address]
Sent: 21. april 2002 21:58
To: aspngcontrolsvb
Subject: [aspngcontrolsvb] Re: Localized custom control

Hi Ollie,

This is the greatest. You have no idea how long I have been dealing with
this problem.

Thank you very much !!

/Oliver

-----Original Message-----
From: Ollie Cornes [mailto:Click here to reveal e-mail address]
Sent: 21. april 2002 21:32
To: aspngcontrolsvb
Subject: [aspngcontrolsvb] Re: Localized custom control

Hi Martin,

The download includes a control that uses resource files too. Here's the
link:
http://www.devx.com/dotnet/articles/oc022102/Part2/localization.zip

The server control that renders the smaller pieces of text on the page
(like
the copyright
message) is rendered from a resource file.

Ollie
--
http://www.RichTextBox.com
The easy way to add formatted text editing to your ASP.NET web site

----- Original Message -----
From: "Martin Oliver Madsen" <Click here to reveal e-mail address>
To: "aspngcontrolsvb" <Click here to reveal e-mail address>
Sent: Sunday, April 21, 2002 5:17 PM
Subject: [aspngcontrolsvb] Re: Localized custom control

Should the download link be on the right side of the article, under the
heading "Resources" ? I can´t find it anywhere

Thanks,
/Martin

-----Original Message-----
From: Ollie Cornes [mailto:Click here to reveal e-mail address]
Sent: 21. april 2002 13:32
To: aspngcontrolsvb
Subject: [aspngcontrolsvb] Re: Localized custom control

Hi Oliver,

I wrote an article recently that covers writing controls that localize
their
content, maybe it'll help you out.

Part 1
http://www.devx.com/dotnet/articles/oc022102/oc022102-1.asp

Part 2
http://www.devx.com/dotnet/articles/oc022102/Part2/oc040302-1.asp

The article has a download (look on the right of the page) and that
includes
some controls that localize their output. You'll probably also need to
set
the culture
in the global.asax file depending on the browser setting or a cookie.

Does that help?

Ollie
--
http://www.RichTextBox.com
The easy way to add formatted text editing to your ASP.NET web site

----- Original Message -----
From: "Martin Oliver Madsen" <Click here to reveal e-mail address>
To: "aspngcontrolsvb" <Click here to reveal e-mail address>
Sent: Saturday, April 20, 2002 10:17 PM
Subject: [aspngcontrolsvb] Localized custom control

[Original message clipped]

| [aspngcontrolsvb] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngcontrolsvb.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

| [aspngcontrolsvb] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngcontrolsvb.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

| [aspngcontrolsvb] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngcontrolsvb.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

| [aspngcontrolsvb] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngcontrolsvb.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

| [aspngcontrolsvb] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngcontrolsvb.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

Reply to this message...
 
 




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com