Click here to Skip to main content
11,577,710 members (62,438 online)
Rate this: bad
Please Sign up or sign in to vote.
Hi everyone,

I'd like to programmatically set the culture of my User Control which defines several Labels, Buttons and Textboxes etc...

Usually, for aspx-pages we override the InitializeCulture-Method and set Culture and UICulture to achieve this, alas ASCX-Controls do not have this Method, so how exactly would I do this?

I've set up the local resources, mycontrol.ascx.resx and mycontrol.ascx.en-GB.resx but only the values of the default file (mycontrol.ascx.resx) are used.

Thanks in advance.
Posted 16-Feb-11 21:46pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Have a look at this [^]one.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Peter Leow 180
1 Richard MacCutchan 175
2 DamithSL 150
3 OriginalGriff 135
4 Afzaal Ahmad Zeeshan 95
0 OriginalGriff 830
1 Sergey Alexandrovich Kryukov 701
2 Abhinav S 573
3 F-ES Sitecore 420
4 Dave Kreskowiak 374

Advertise | Privacy | Mobile
Web04 | 2.8.150603.1 | Last Updated 17 Feb 2011
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100