ASP.NET Localized web site — updating on the fly

asp.netlocalization

I think I have a solution to this, but is there a better way, or is this going to break on me?

I am constructing a localized web site using global/local resx files. It is a requirement that non-technical users can edit the strings and add new languages through the web app.

This seems easy enough — I have a form to display strings and the changes are saved with code like this snippet:

string filename = MapPath("App_GlobalResources/strings.hu.resx");
XmlDocument xDoc = new XmlDocument();
XmlNode xNode;

xDoc.Load(filename);
xNode = xDoc.SelectSingleNode("//root/data[@name='PageTitle']/value");
xNode.InnerText = txtNewTitle.Text;
xDoc.Save(filename);

Is this going to cause problems on a busy site? If it causes a momentary delay for recompilation, that's no big deal. And realistically, this form won't see constant, heavy use. What does the community think?

Best Answer

I've used a similar method before for a very basic "CMS". The site wasn't massively used but it didn't cause me any problems.

I don't think changing a resx will cause a recycle.