By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,030 Members | 1,997 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,030 IT Pros & Developers. It's quick & easy.

Reading and modifying .resx files at runtime

P: n/a
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
Jul 13 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.