Strongly Typed local resources

Last post 06-04-2008 8:00 PM by clement_911. 2 replies.

Sort Posts:

  • Strongly Typed local resources

    05-14-2008, 9:03 PM
    • Loading...
    • clement_911
    • Joined on 05-14-2008, 3:50 AM
    • Posts 3

    Dear experts.

    Is is possible to access to local resources in a strongly typed, in a similar fashion as the strongly typed access to Global resources.

    I think I read someday that it could not be done because local resources name can contain dots. But couldn't the wrapper

    class 'escape' or 'replace' thoses dots with underscores ??

     

    Thanks experts. 

  • Re: Strongly Typed local resources

    06-04-2008, 7:37 PM

    If you look at the properties of global resources you can see that it has a custom tool :GlobalResourceProxyGenerator

    You can set the custom tool of a local resource and it will generate the  designer.

    Its a start, I'm not sure how well it will work but you will be able to do this: Resources.LocalResourceResgenTest.aspx.Button1Resource1_Text

  • Re: Strongly Typed local resources

    06-04-2008, 8:00 PM
    • Loading...
    • clement_911
    • Joined on 05-14-2008, 3:50 AM
    • Posts 3

    Thanks Andrew, it worked instantly !

    Interestingly enough the dots are indeed replaced by underscores.

    However the custom tool I used is not called GlobalResourceProxyGenerator but ResXFileCodeGenerator

Page 1 of 1 (3 items)
Microsoft Communities
Page view counter