Last post May 28, 2008 04:26 AM by hari_4uin
May 27, 2008 05:49 AM|hari_4uin|LINK
I was working on a bi-lingual asp.net site.. i have a label(lblmessage) to show messages. I have 2 messages to be shown there( if the process is successfull, the a sucess message should be shown else error message should be shown. I have added two string
values in resx files
success and failure. I have two languages resource files(default.aspx.resx and default.aspx.fr.resx) I have given the values for success and failure in both files.
During run time how can i show the message from the resource files? i have the current selected language in session object as session["language"].
thanks and regards
May 27, 2008 07:46 AM|murthysrn|LINK
in the resource file...Make teh label as LabelTrue and Label False....
if the true values is required then assign the labelTrue...
if the false value is required then assign the LabelFalse....
May 27, 2008 09:29 AM|hari_4uin|LINK
in resource.labelTrue: what is recourse object? which class's object is this?
May 27, 2008 09:38 AM|murthysrn|LINK
Accessing of the "App_GlobalResources" files....in biculture language resource files accessing is like this
May 28, 2008 12:05 AM|hari_4uin|LINK
but my resource files are in App_LocalResources. How can i get those values?
which class should i use?
May 28, 2008 04:26 AM|hari_4uin|LINK
it worked fine for me with GetLocalResourceObject("message") function