Click here to Skip to main content
15,886,788 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

how to global resources for grid view in design time.
i use for label---Text="<%$ Resources:Filename,label1 %>.
i want same like this for grid view pls guid me. its very urgent.
Posted
Comments
Sandesh M Patil 3-Oct-10 6:40am    
did you mean how to bind data to a particular column of gridview in design view of the page?

1 solution

You can use the next method:

C#
public string GetResourceString(string key)
        {
            Object obj = HttpContext.GetGlobalResourceObject("YourResourceFileName", key);
            if (obj == null)
                return key;
            return obj.ToString();
        }
 
Share this answer
 

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