Asp.net Mvc application. In project there is a resource.resx file, where there are information. From resource file I want to get the list of names. Everybody can me help?
Asked
Active
Viewed 5,225 times
2 Answers
4
You should be able to do this by iterating through the resources through the ResourceManager.GetResourceManagerSet()
method.
For more info see this question ...
-
@Gurgen Hovsepyan please don't forget to accept if it's answred your question? – Chris Aug 01 '12 at 16:51
1
try this code
string[] fileEntries = Directory.GetFiles(Application.StartupPath.Replace("bin\\\Debug", "Resources"));
foreach (string fileName in fileEntries)
comboBox1.Items.Add(Path.GetFileName(fileName));

saif
- 11
- 3