Last post Dec 10, 2007 11:44 AM by BugInfested
Feb 10, 2007 12:20 PM|PaulTAG|LINK
I was wondering if it is possible to use Resources to give non technical users the ability to change text on a webform? ie, if on a web form there is some text like "Please fill in your details below" and my project manager wants that changing, is there
some way I can use resources so that they can modify these pieces of content themselves.
This would save a lot of time, and also allow me to spend more time writing apps rather than making copy changes.
I know the resource files are usually compiled into the DLL, so editing these at runtime doesnt seem to feasible. Im sure if this could be done, then it would be easy enough to list the resource file content on a page somewhere so that the project manager
can edit copy till their heart is content.
Thanks in advance for any advice
Feb 11, 2007 12:48 AM|aweil|LINK
Yes, they work for such purposes.
RESX files are XML files, so you can give them to translators (they have tools to deal with XML files), or any user (XSLT them to transform them to text or Word files).
Basically, you write your Web page once, create a RESX file for it, and then add a RESX file (just copy the basic RESX file created) for each language for the page.
I you need more info, I wrote an article
how to translate ASP.net Web applications.
Feb 11, 2007 07:16 AM|PaulTAG|LINK
That was just the answer I was looking for. After some digging around I found some additional information about creating a DB provider for resources, enabling the storage of resources in the Database. This might be something I look into. But for now your
suggestion of using the XML resources will do the job.
Feb 11, 2007 10:23 AM|aweil|LINK
I didn't know you could store resources in a database! It sounds good, but for non-techies purposes I guess an XML file is a good tool.
Dec 10, 2007 11:44 AM|BugInfested|LINK
I have provided a published/compiled site to my client. I like to have my client edit the content in the RESX files. However, it doesn't seem possible when the site is published/compiled. Am I wrong? Is there a way for my client to be able to change
the content of the RESX files? If so, how?