Reading and modifying .resx files at runtime

G

Guest

Hi all,

I have to implement localization in asp.net application using .resx files,
but I have to read and modify these .resx files at runtime, I used
ResourceReader class to read that file but its giving error

code is as follows

string str = Server.MapPath("App_LocalResources/Resource.resx");

ResourceReader rd = new ResourceReader(str);

IDictionaryEnumerator id = rd.GetEnumerator();

while (id.MoveNext())
{
Response.Write(id.Key + "-" + id.Value);
}

its giving error...while creating object of ResourceReader...saying "stream
is not valid"....

Is there any way to read and modify these .resx files in asp.net

Thanks in advace

Bhavini
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top