locked
Localizing content in .aspx.cs page RRS feed

  • Question

  • User-715140818 posted

    I have lot of content in  page like page.aspx.cs as below

    LaBEL1.Text =

     

    "<b>Sorry, you already have an been late. Please either come soon or don't come</b><br">

    Can you tell me how to localize such content.I know how to localize content in page.aspx.within label we can add metaresourcekey but I don't have idea about localizing content in page.aspx.cs.

    Thanks in advance

     

    Thursday, July 29, 2010 11:37 AM

Answers

  • User-1734649046 posted

    Hi,

    In codebehind you can use GetLocalResourceObject to get resource key from resource file. Please refer following

    Label1.Text = this.GetLocalResourceObject("ResourceKey").ToString();


    Also please refer following

    http://msdn.microsoft.com/en-us/library/ms227982.aspx

    hope this helps

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, July 29, 2010 11:54 AM