Click here to Skip to main content
15,904,935 members
Home / Discussions / C#
   

C#

 
QuestionHow to find the item that selected in ListView ? Pin
Yanshof13-Aug-07 3:09
Yanshof13-Aug-07 3:09 
AnswerRe: How to find the item that selected in ListView ? Pin
Justin Perez13-Aug-07 3:12
Justin Perez13-Aug-07 3:12 
AnswerRe: How to find the item that selected in ListView ? Pin
Giorgi Dalakishvili13-Aug-07 3:13
mentorGiorgi Dalakishvili13-Aug-07 3:13 
QuestionInstollation Solution Pin
Thaer Hamael13-Aug-07 2:56
Thaer Hamael13-Aug-07 2:56 
AnswerRe: Instollation Solution Pin
Justin Perez13-Aug-07 3:03
Justin Perez13-Aug-07 3:03 
GeneralRe: Instollation Solution Pin
Thaer Hamael13-Aug-07 3:59
Thaer Hamael13-Aug-07 3:59 
GeneralRe: Instollation Solution Pin
Justin Perez13-Aug-07 4:14
Justin Perez13-Aug-07 4:14 
Questionrexec in C# Pin
aziz_subaie13-Aug-07 2:44
aziz_subaie13-Aug-07 2:44 
AnswerRe: rexec in C# Pin
Paul Conrad16-Aug-07 16:26
professionalPaul Conrad16-Aug-07 16:26 
GeneralRe: rexec in C# Pin
aziz_subaie17-Aug-07 2:44
aziz_subaie17-Aug-07 2:44 
GeneralRe: rexec in C# Pin
Paul Conrad17-Aug-07 12:20
professionalPaul Conrad17-Aug-07 12:20 
GeneralRe: rexec in C# Pin
aziz_subaie17-Aug-07 18:36
aziz_subaie17-Aug-07 18:36 
GeneralRe: rexec in C# Pin
Paul Conrad18-Aug-07 3:42
professionalPaul Conrad18-Aug-07 3:42 
QuestionHow to add Custom folder To setup project Pin
salmonraju13-Aug-07 2:21
salmonraju13-Aug-07 2:21 
AnswerRe: How to add Custom folder To setup project Pin
sathish s13-Aug-07 3:01
sathish s13-Aug-07 3:01 
GeneralRe: How to add Custom folder To setup project Pin
salmonraju13-Aug-07 3:24
salmonraju13-Aug-07 3:24 
GeneralRe: How to add Custom folder To setup project Pin
sathish s13-Aug-07 3:37
sathish s13-Aug-07 3:37 
GeneralRe: How to add Custom folder To setup project Pin
salmonraju13-Aug-07 3:53
salmonraju13-Aug-07 3:53 
Questionhow to connect to sql Pin
costavo13-Aug-07 1:50
costavo13-Aug-07 1:50 
AnswerRe: how to connect to sql Pin
Giorgi Dalakishvili13-Aug-07 2:03
mentorGiorgi Dalakishvili13-Aug-07 2:03 
AnswerRe: how to connect to sql Pin
Russell Jones13-Aug-07 5:53
Russell Jones13-Aug-07 5:53 
Questionsome problem with ResourceManager Pin
Areff13-Aug-07 1:27
Areff13-Aug-07 1:27 
AnswerRe: some problem with ResourceManager Pin
Pete O'Hanlon13-Aug-07 1:31
mvePete O'Hanlon13-Aug-07 1:31 
AnswerRe: some problem with ResourceManager Pin
Talal Sultan13-Aug-07 2:17
Talal Sultan13-Aug-07 2:17 
With .NET 2.0, there is an easier way to do things.

First of all, you need to create the local resources folder called App_LocalResources or the global resources folder, App_GlobalResources. Files located in the local resources folder will have to be named like their corresponding ASPX files; files in the global resources folder can be named whatever you like.

Now, suppose you have a file called myPage.aspx. If you decide to use the local resouces, it means that you will create resource files only for that page. Your resource files should be named: myPage.aspx.resx (this one should always be present), then for different languages you would have: for US English: myPage.aspx.en-US.resx, for Switzerland French: myPage.aspx.fr-CH.resx, etc....

For the global resources, you can use any file name you like to replace myFile.aspx.

Now to access the resouces:

Assuming you have a label lblFirstname to which you would like to assign the value of the resource called "firstname" in the resource files, you would write:

For local resource: lblFirstname.Text = GetLocalResourceObject("firstname").ToString();
For global resource: lblFirstname.Text = GetGlobalResourceObject("GlobalFile", "firstname").ToString();

where GlobalFile will be the name of the global resource file.

I hope this helps Smile | :)

Talal

-- If this is a post that has been helpful to you, please vote for it. Thank you!

"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook

GeneralRe: some problem with ResourceManager Pin
Areff13-Aug-07 2:42
Areff13-Aug-07 2:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.