>From a Page because usercontrol doesn't have function:
InitializeCulture() which I use like this:
protected override void InitializeCulture()
{
string culture = "en-GB";
this.UICulture = culture;
this.Culture = culture;
System.Globalization.CultureInfo ci = new
System.Globalization.CultureInfo(culture);
System.Threading.Thread.CurrentThread.CurrentCulture = ci;
System.Threading.Thread.CurrentThread.CurrentUICulture =
ci;
base.InitializeCulture();
}
in fact when I use it with page (not user control) it works fine
but I cannot change resource for usercontrol
I try override OnInit:
protected override void OnInit(EventArgs e)
{
Functions.DdlBind(ddlCounty, SProc.CountyList());
this.Page.UICulture = "en-GB";
this.Page.Culture = "en-GB";
System.Globalization.CultureInfo ci = new
System.Globalization.CultureInfo("en-GB");
System.Threading.Thread.CurrentThread.CurrentCulture = ci;
System.Threading.Thread.CurrentThread.CurrentUICulture = ci;
base.OnInit(e);
}
but doesn't work too
so - any ideas ?
On 29 Sie, 05:30, Cerebrus <[EMAIL PROTECTED]> wrote:
> How does the use of resources differ whether you call it from a
> usercontrol or a page ?
>
> On Aug 28, 4:02 pm, Complex-IT <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi !
>
> > I have problem - how do I use resource file with user control ?
> > I'm interested to use multilanguage interface but with UC.
>
> > I generate local resource but I don't know hou use it with page
> > on which is located my UC.
>
> > Additionally - I use Master Pages too so can anybody help me ?
>
> > Best Regards
> > Piotr Ufel- Ukryj cytowany tekst -
>
> - Pokaż cytowany tekst -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web
Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://cm.megasolutions.net/forums/default.aspx
-~----------~----~----~----~------~----~------~--~---