By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,649 Members | 2,154 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,649 IT Pros & Developers. It's quick & easy.

Expressions are not allowed in skin files.

P: n/a
I am trying to set a culture in my skin file, I had used the following code
in my skin file:

<asp:Label ID="UserNameLabel" runat="server" Text='<%$ Resources: CreateNew,
Label1UserName %>' AssociatedControlID="UserName" style="FONT-WEIGHT:
bold;FONT-SIZE: 11px; COLOR: #000000"></asp:Label>

from the globalResources and I get the following error:
Expressions are not allowed in skin files.

Then I had tried the LocalResources by adding the meta tag below

<asp:Label ID="UserNameLabel" runat="server"
meta:resourcekey="Label1UserName" AssociatedControlID="UserName"
style="FONT-WEIGHT: bold;FONT-SIZE: 11px; COLOR:
#000000">Username:</asp:Label>

But this time it ignores it, any idea of how to do that?
Many thanks in advance.

Kindest Regards
Lamine
Nov 22 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.