locked
Setting resource key at runtime RRS feed

  • Question

  • User-1246604461 posted

    I want to display a Label (or Literal) with result message on my page....the result can be success or failure...

    pseudo-code:
    if x>y then
       lblMessage="failure"
    else
       lblMessage="success"
    end if

    The thing is...I want to be able to show the message in the language of the current user....
    Can I achieve the above with resource files? if so how?

    I dont want to have many case select statements in my site like:
    Select Case sUserLanguage
    Case "en"    'english message
       lblMessage="success"
    Case "de"    'german message
       lblMessage="gut"
    end select

    Help is appreciated!
    Thanks!

    Sunday, April 9, 2006 4:45 PM

All replies