all groups > asp.net building controls > september 2003 >
You're in the

asp.net building controls

group:

Localized user web controls



Localized user web controls Christian Tremblay
9/28/2003 4:13:07 PM
asp.net building controls: I'm actually building a web based localized system using asp.net 1.0 c#

I have 2 questions:

1- Is there a way to access programatically the .aspx user main classes from
a user web control ?
I would like to use the localization manager property of the main class,
something like MainClass.locRM
Since it is not possible to serialize this object, I need to build a new
localization manager for each web control
and i have a lot of them ....

2- One of my user web control may change the language. Is there a way to
force all user web controls to refresh ?
Actually even if I change the language in the Session object, the
language is unaffected right away. It only change after
the next posting cycle. I would like to force all user web controls to
run the Page_load method before posting back
the response.



Thanks for your help,


Christian tremblay



Re: Localized user web controls Suneel Jhangiani
9/29/2003 1:41:29 AM
I'm not sure on Part 1, however for part 2 I've seen most people just use a
Response.Redirect to the same page, thereby causing the page to be
re-generated.

Suneel.

[quoted text, click to view]

AddThis Social Bookmark Button