I am using a CMS tool to generate .resx resource files.
Is there any danger in creating resource names with spaces or punctuation characters in them?
If I use this syntax to get resources, it works fine:
GetGlobalResourceObject("myresources", "audio,visual");
However, this causes an error with declarative resource syntax, e.g.:
<asp:Literal ID="litLastName" runat="server" Text="<%$ Resources: GlobalResources,audio,visual %>"></asp:Literal>
Also, when I edit .resx files in Visual Studio, it gives me warnings if my resource keys contain any characters besides alphanumerics and underscores. It says "The resource name " is not a valid identifier".
Am I breaking a .NET rule here?