Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to Know that can I use resource file in C# to access the variable.If yes then How..?
Posted

suppose u want to give a name to label using resource file then u can try like that:

< asp:Label ID="lblClassHead" runat="server" CssClass="Label" Text="<% $Resources:Fire, lblClass %>" > < /asp:Label>
 
Share this answer
 
What I want is I have large number of static variables in my Project and I am Thinking that I will Store the Variables in a Resource File along with the Value assigned to it and instead of using the variables From a C# File I will fetch the Value of the Variable from the resource file.

Can you Help me out in this.
 
Share this answer
 
v2

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900