Complex-IT
unread,Aug 29, 2008, 6:28:08 AM8/29/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
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 ?
> > Piotr Ufel- Ukryj cytowany tekst -
>
> - Pokaż cytowany tekst -