Hi Trapulo,
Thank you for posting.
As for the Theme & Localization page resource, based on my research, they
could not be used together to provide the functionality you expect.
Actually, Theme is applied at runtime at the page's initlization time,
while the localization page resource( applied through "meta:ResourceK ey"
attribute) is generated as some code which will be called later in page's
lifecycle. e.g:
<asp:TextBox ID="TextBox1" runat="server"
meta:resourceke y="TextBox1Reso urce1"></asp:TextBox>
will cause the asp.net runtime dynamically generate the following code in
dynamic compiled page class:
box1.ToolTip =
Convert.ToStrin g(base.GetLocal ResourceObject( "TextBox1Resour ce1.ToolTip"),
CultureInfo.Cur rentCulture);
box1.Text =
Convert.ToStrin g(base.GetLocal ResourceObject( "TextBox1Resour ce1.Text"),
CultureInfo.Cur rentCulture);
So the Theme can not provide such dynamic functionality on localization
resource locating. IMO, if you do need to provide different localization
resource for different Theme , and apply them onto page, controls
flexiblely, you can not avoid using custom code to read the resource from
local page resource and assign them to certain control's certain property.
However, if you want to make it flexible, you can consider define some
custom webcontrol class dervied from the built-in one(such as Label
control) and add those custom localization code(such as read specific
resource from the resource file according to the current Page Theme) in the
custom control's override funciton(such as PreRender event )...
Regards,
Steven Cheng
Microsoft Online Community Support
=============== =============== =============== =====
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)