Writing Editing Reading Resource .resx files In web Based application asp.net 2.0 C#http://forums.asp.net/t/1152145.aspx/1?Writing+Editing+Reading+Resource+resx+files+In+web+Based+application+asp+net+2+0+C+Wed, 29 Jun 2011 05:14:09 -040011521451881872http://forums.asp.net/p/1152145/1881872.aspx/1?Writing+Editing+Reading+Resource+resx+files+In+web+Based+application+asp+net+2+0+C+Writing Editing Reading Resource .resx files In web Based application asp.net 2.0 C# <p>Hey,</p> <p>&nbsp;I have been reading for quiet a while now without finding an solution. I bassicly want to read, write and edit my resource files in xml .resx format. </p> <p>Now my first try was something like this:</p> <font color="#008080" size="2">Assembly</font><font size="2"> ass = </font><font color="#008080" size="2">Assembly</font><font size="2">.Load(</font><font color="#800000" size="2">&quot;App_GlobalResources&quot;</font><font size="2">);</font><font size="2"> <p></font><font color="#008080" size="2">ResourceManager</font><font size="2"> resourcer = <span style="color:#2b91af">new <span style="color:#2b91af">ResourceManager</span><font color="#000000">(&quot;Resource&quot;, ass);</font></span></font><font size="2"></p> <p>Languagelbl.Text = resourcer.GetString(Session[</font><font color="#800000" size="2">&quot;Language&quot;</font><font size="2">].ToString());</font></p> <p><font size="2">With Resouce.resx as the resource name I want to connect to. But I read a couple of minutes later that this approache is not possible for web based application because it generates a randem dll.</font></p> <p><font size="2"></font>&nbsp;</p> <font size="2"><font size="2"></font><font color="#008080" size="2">ResourceManager</font><font size="2"> resourcer = </font><font color="#0000ff" size="2">new</font><font size="2"> </font><font color="#008080" size="2">ResourceManager</font><font size="2">(</font><font color="#800000" size="2">&quot;Website3.Resource &quot;</font><font size="2">, </font><font color="#008080" size="2">Assembly</font><font size="2">.GetExecutingAssembly());</font></font><font size="2"> <p></font><font color="#0000ff" size="2">string</font><font size="2"> AddLanguageName = LanguageNamelbl.Text;</p> </font><font color="#0000ff" size="2">string</font><font size="2"> AddLanguageText = LanguageTextlbl.Text;</font><font size="2"> <p></font><font color="#008080" size="2">ResourceWriter</font><font size="2"> writer = </font><font color="#0000ff" size="2">new</font><font size="2"> </font><font color="#008080" size="2">ResourceWriter</font><font size="2">(</font><font color="#800000" size="2">&quot;resourcer&quot;</font><font size="2">);</p> writer.AddResource(</font><font color="#800000" size="2">&quot;Name&quot;</font><font size="2">, </font><font color="#800000" size="2">&quot;Text&quot;</font><font size="2">);</font><font size="2"> <p>writer.Close();</p> <p>With Website3 as the temporary name for the&nbsp;web application and&nbsp;Resource as the resource&nbsp;I want to reach. But this doesent seem to work either. Maybe because web applications dont have a&nbsp;&quot;real&quot; name?</p> <p>Later&nbsp;I read that I need resxresourcewriter to write into an .resx file, but for some reason I cant use it. Add least its not on my list. Some one said something like you need windows.system.resource or something for resxresource namespaces.</p> <p>&nbsp;</p> <p>I hope you understand that I get a bit confused with all this information. I will keep searching but I hope you can atleast explain why&nbsp;I cant use my previous approaches, or maybe&nbsp;some one&nbsp;even knows a solution for this.</p> <p>Thank you in advanced,</p> <p>Kevin Hendricks,</p> </font> 2007-08-29T09:09:30-04:001882707http://forums.asp.net/p/1152145/1882707.aspx/1?Re+Writing+Editing+Reading+Resource+resx+files+In+web+Based+application+asp+net+2+0+C+Re: Writing Editing Reading Resource .resx files In web Based application asp.net 2.0 C# <p>I have been working on my solution for the past 8 hours now.</p> <p>I am currently this far:</p> <p>&nbsp;</p> <font color="#0000ff" size="2">protected</font><font size="2"> </font><font color="#0000ff" size="2">void</font><font size="2"> Page_Load(</font><font color="#0000ff" size="2">object</font><font size="2"> sender, </font><font color="#008080" size="2">EventArgs</font><font size="2"> e)</font><font size="2"> <p>{</p> </font><font color="#0000ff" size="2">if</font><font size="2"> (!</font><font color="#0000ff" size="2">this</font><font size="2">.IsPostBack)</font><font size="2"> <p>{</p> </font><font color="#008080" size="2">ResXResourceReader</font><font size="2"> reader = </font><font color="#0000ff" size="2">new</font><font size="2"> </font><font color="#008080" size="2">ResXResourceReader</font><font size="2">(Server.MapPath(</font><font color="#800000" size="2">&quot;~/App_GlobalResources/Resource.resx&quot;</font><font size="2">));</font><font size="2"> <p></font><font color="#008080" size="2">IDictionaryEnumerator</font><font size="2"> id = reader.GetEnumerator();</p> </font><font color="#008080" size="2">DataTable</font><font size="2"> dt = </font> <font color="#0000ff" size="2">new</font><font size="2"> </font><font color="#008080" size="2">DataTable</font><font size="2">();</font><font size="2"> <p>dt.Columns.Add(</font><font color="#0000ff" size="2">new</font><font size="2"> </font><font color="#008080" size="2">DataColumn</font><font size="2">(</font><font color="#800000" size="2">&quot;Name&quot;</font><font size="2">, System.</font><font color="#008080" size="2">Type</font><font size="2">.GetType(</font><font color="#800000" size="2">&quot;System.String&quot;</font><font size="2">)));</p> dt.Columns.Add(</font><font color="#0000ff" size="2">new</font><font size="2"> </font> <font color="#008080" size="2">DataColumn</font><font size="2">(</font><font color="#800000" size="2">&quot;Value&quot;</font><font size="2">, System.</font><font color="#008080" size="2">Type</font><font size="2">.GetType(</font><font color="#800000" size="2">&quot;System.String&quot;</font><font size="2">)));</font><font size="2"> <p>&nbsp;</p> </font><font color="#0000ff" size="2">foreach</font><font size="2"> (</font><font color="#008080" size="2">DictionaryEntry</font><font size="2"> d </font><font color="#0000ff" size="2">in</font><font size="2"> reader)</font><font size="2"> <p>{</p> </font><font color="#008080" size="2">DataRow</font><font size="2"> dr = dt.NewRow();</font><font size="2"> <p>dr[</font><font color="#800000" size="2">&quot;Name&quot;</font><font size="2">] = d.Key.ToString();</p> dr[</font><font color="#800000" size="2">&quot;Value&quot;</font><font size="2">] = d.Value.ToString();</font><font size="2"> <p>dt.Rows.Add(dr);</p> <p>}</p> <p>reader.Close();</p> <p>LanguageDropdownlist.DataSource = dt;</p> LanguageDropdownlist.DataValueField = </font><font color="#800000" size="2">&quot;Name&quot;</font><font size="2">;</font><font size="2">LanguageDropdownlist.DataTextField = </font><font color="#800000" size="2">&quot;Value&quot;</font><font size="2">;</font><font size="2"> <p>LanguageDropdownlist.DataBind();</p> <p>&nbsp;</p> <p>}</p> <p>}</p> </font><font color="#0000ff" size="2">protected</font><font size="2"> </font><font color="#0000ff" size="2">void</font><font size="2"> Language_Click(</font><font color="#0000ff" size="2">object</font><font size="2"> sender, </font><font color="#008080" size="2">EventArgs</font><font size="2"> e)</font><font size="2"> <p>{</p> <p>ResourceNamelbl.Text = LanguageDropdownlist.SelectedValue;</p> <p>ResourceValue.Text = LanguageDropdownlist.SelectedItem.Text;</p> <p>}</p> </font><font color="#0000ff" size="2">protected</font><font size="2"> </font><font color="#0000ff" size="2">void</font><font size="2"> AddingLanguage_Click(</font><font color="#0000ff" size="2">object</font><font size="2"> sender, </font><font color="#008080" size="2">EventArgs</font><font size="2"> e)</font><font size="2"> <p>{</p> </font><font color="#0000ff" size="2">string</font><font size="2"> Name = ResourceNamelbl.Text;</font><font size="2"> <p></font><font color="#0000ff" size="2">string</font><font size="2"> ModifiedValue = ResourceValue.Text;</p> </font><font color="#008080" size="2">ResXResourceWriter</font><font size="2"> writer = </font><font color="#0000ff" size="2">new</font><font size="2"> </font><font color="#008080" size="2">ResXResourceWriter</font><font size="2">(Server.MapPath(</font><font color="#800000" size="2">&quot;~/App_GlobalResources/Resource.resx&quot;</font><font size="2">));</font><font size="2"> <p>writer.Generate();</p> <p>writer.Close();</p> <p>}</p> <p>&nbsp;</p> <p>The only problem I now have is that I need to modify the data. There are 2 possibilitys but I dont know how to make one of them so I am still reading through the internet.</p> <p>The first one would be to just modify the data directly so something like inserting where name = name.</p> <p>The second would be that I make a public datatable and create a new file with a loop till its done and a if statement for if i get the name of the modified name so I can modify the default.</p> <p>&nbsp;</p> <p>Does any one have an solution or an idear?</p> <p>With kind regards,</p> <p>Kevin Hendricks.</p> </font> 2007-08-29T15:43:42-04:002110189http://forums.asp.net/p/1152145/2110189.aspx/1?Re+Writing+Editing+Reading+Resource+resx+files+In+web+Based+application+asp+net+2+0+C+Re: Writing Editing Reading Resource .resx files In web Based application asp.net 2.0 C# <p>Did you ever get this working or does anyone know how to do this?<br> </p> 2008-01-15T10:51:03-05:002110200http://forums.asp.net/p/1152145/2110200.aspx/1?Re+Writing+Editing+Reading+Resource+resx+files+In+web+Based+application+asp+net+2+0+C+Re: Writing Editing Reading Resource .resx files In web Based application asp.net 2.0 C# <p>I actually did get it to work. The problem is that the resx reader can not read the comment. and after alot of research and alot of testing I came with the following solution.</p> <p>I use an XML reader to read the resource by looping. It is difficult but I got it to work. Then on each edit I write the whole resource with an text writer.</p> <p>I cannot send you the modified files wich I put into an existing website.&nbsp; but I can email you the older files wich DO WORK. So please email me to biodoom@gmail.com I will reply you the files you can use as an example. You can ask me if you have any qeustions.</p> <p><br> With kind regards,</p> <p>Kevin Hendricks.&nbsp;</p> 2008-01-15T11:03:14-05:002110223http://forums.asp.net/p/1152145/2110223.aspx/1?Re+Writing+Editing+Reading+Resource+resx+files+In+web+Based+application+asp+net+2+0+C+Re: Writing Editing Reading Resource .resx files In web Based application asp.net 2.0 C# <p>&nbsp;Thanks, I have emailed you.</p> <p>&nbsp;I did read somewhere that you should use satellite assemblies for better performance but I'm not really sure what is right in this process.<br> </p> 2008-01-15T11:16:53-05:002110262http://forums.asp.net/p/1152145/2110262.aspx/1?Re+Writing+Editing+Reading+Resource+resx+files+In+web+Based+application+asp+net+2+0+C+Re: Writing Editing Reading Resource .resx files In web Based application asp.net 2.0 C# <p>&nbsp;Thanks for you code you provided, looks pretty in depth.</p> <p>I have written this code which you can have which is pretty simple.</p> <p>Hope it helps, any comments then feel free to post them.</p> <p>&nbsp;</p> <pre class="prettyprint">XmlDocument loResource = new XmlDocument(); loResource.Load(Server.MapPath(&quot;/App_GlobalResources/TDLResources.de-DE.resx&quot;)); XmlNode loRoot = loResource.SelectSingleNode(&quot;root/data[@name='RequiredFields']/value&quot;); if (loRoot != null) { loRoot.InnerText = &quot;test&quot;; loResource.Save(Server.MapPath(&quot;/App_GlobalResources/TDLResources.de-DE.resx&quot;)); }</pre>&nbsp;&nbsp; 2008-01-15T11:46:08-05:002110293http://forums.asp.net/p/1152145/2110293.aspx/1?Re+Writing+Editing+Reading+Resource+resx+files+In+web+Based+application+asp+net+2+0+C+Re: Writing Editing Reading Resource .resx files In web Based application asp.net 2.0 C# <p>So you can edit a single value with the code you made? Looks good.</p> <p>It was the first thing I ever developt so it can still have alot of improvement.&nbsp;</p> <p>&nbsp;</p> <p>Thx for the reply.</p> <p>With kind regrads,</p> <p>Kevin Hendricks.<br> &nbsp;</p> 2008-01-15T12:01:48-05:002489512http://forums.asp.net/p/1152145/2489512.aspx/1?Re+Writing+Editing+Reading+Resource+resx+files+In+web+Based+application+asp+net+2+0+C+Re: Writing Editing Reading Resource .resx files In web Based application asp.net 2.0 C# <p>Hi Kevin,</p> <p>I am trying to write,edit and read resource files...&nbsp;Now I dont know how to edit/write to a resource file.It would be great if u could help me out...Since u have already done this..Thanx a lot....</p> <font color="#008080" size="2"> <p>I have done this much...&nbsp;</p> ResXResourceReader</font><font size="2"> reader = </font><font color="#0000ff" size="2">new</font><font size="2"> </font><font color="#008080" size="2">ResXResourceReader</font><font size="2">(Server.MapPath(</font><font color="#800000" size="2">&quot;~/App_LocalResources/&quot;</font><font size="2">&#43;lstresource.SelectedItem.Text)); </font><font size="2"> <p>&nbsp;</p> <p>&nbsp;</p> </font><font color="#008080" size="2">DataTable</font><font size="2"> dt = </font> <font color="#0000ff" size="2">new</font><font size="2"> </font><font color="#008080" size="2">DataTable</font><font size="2">();</font><font size="2"> <p>dt.Columns.Add(</font><font color="#0000ff" size="2">new</font><font size="2"> </font><font color="#008080" size="2">DataColumn</font><font size="2">(</font><font color="#800000" size="2">&quot;Name&quot;</font><font size="2">, System.</font><font color="#008080" size="2">Type</font><font size="2">.GetType(</font><font color="#800000" size="2">&quot;System.String&quot;</font><font size="2">)));</p> dt.Columns.Add(</font><font color="#0000ff" size="2">new</font><font size="2"> </font> <font color="#008080" size="2">DataColumn</font><font size="2">(</font><font color="#800000" size="2">&quot;Value&quot;</font><font size="2">, System.</font><font color="#008080" size="2">Type</font><font size="2">.GetType(</font><font color="#800000" size="2">&quot;System.String&quot;</font><font size="2">)));</font><font size="2"> <p>&nbsp;</p> </font><font color="#0000ff" size="2">foreach</font><font size="2"> (</font><font color="#008080" size="2">DictionaryEntry</font><font size="2"> d </font><font color="#0000ff" size="2">in</font><font size="2"> reader)</font><font size="2"> <p>{</p> </font><font color="#008080" size="2">DataRow</font><font size="2"> dr = dt.NewRow();</font><font size="2"> <p>dr[</font><font color="#800000" size="2">&quot;Name&quot;</font><font size="2">] = d.Key.ToString();</p> dr[</font><font color="#800000" size="2">&quot;Value&quot;</font><font size="2">] = d.Value.ToString();</font><font size="2"> <p>dt.Rows.Add(dr);</p> <p>}</p> <p>reader.Close();</p> </font><font color="#0000ff" size="2">this</font><font size="2">.grddisplay.Visible = </font><font color="#0000ff" size="2">true</font><font size="2">;</font><font size="2"> <p>grddisplay.DataSource = dt ;</p> <p>grddisplay.DataBind();</p> </font> <p>&nbsp;</p> 2008-07-15T05:08:10-04:003579240http://forums.asp.net/p/1152145/3579240.aspx/1?Re+Writing+Editing+Reading+Resource+resx+files+In+web+Based+application+asp+net+2+0+C+Re: Writing Editing Reading Resource .resx files In web Based application asp.net 2.0 C# <p><strong></p> <blockquote><span class="icon-blockquote"></span> <h4>j.channon</h4> <p>&nbsp;Thanks for you code you provided, looks pretty in depth.</p> <p>I have written this code which you can have which is pretty simple.</p> <p>Hope it helps, any comments then feel free to post them.</p> <p>&nbsp;</p> <pre class="prettyprint">XmlDocument loResource = new XmlDocument(); loResource.Load(Server.MapPath(&quot;/App_GlobalResources/TDLResources.de-DE.resx&quot;)); XmlNode loRoot = loResource.SelectSingleNode(&quot;root/data[@name='RequiredFields']/value&quot;); if (loRoot != null) { loRoot.InnerText = &quot;test&quot;; loResource.Save(Server.MapPath(&quot;/App_GlobalResources/TDLResources.de-DE.resx&quot;)); }</pre></strong> <p>&nbsp;&nbsp;</p> </blockquote> awesome&nbsp;.. it helped me. <p></p> <p></p> 2009-12-22T19:10:57-05:003617095http://forums.asp.net/p/1152145/3617095.aspx/1?Re+Writing+Editing+Reading+Resource+resx+files+In+web+Based+application+asp+net+2+0+C+Re: Writing Editing Reading Resource .resx files In web Based application asp.net 2.0 C# <p>Just replace 'Resource' with 'Resources.Resource'...</p> <p>Assembly ass = Assembly.Load(&quot;App_GlobalResources&quot;); </p> <p>ResourceManager resourcer = new ResourceManager(&quot;<strong>Resources.Resource</strong>&quot;, ass);</p> <p>&nbsp;Languagelbl.Text = resourcer.GetString(Session[&quot;Language&quot;].ToString());</p> <p>.net framework keep this 'Resource.resx' file under Resources namespace with class name as Resource</p> 2010-01-14T09:01:21-05:003720921http://forums.asp.net/p/1152145/3720921.aspx/1?Re+Writing+Editing+Reading+Resource+resx+files+In+web+Based+application+asp+net+2+0+C+Re: Writing Editing Reading Resource .resx files In web Based application asp.net 2.0 C# <p>Sorry i'm a newbie .. but c# make an error on Server.MapPath :/<br> </p> 2010-03-09T09:25:09-05:003720985http://forums.asp.net/p/1152145/3720985.aspx/1?Re+Writing+Editing+Reading+Resource+resx+files+In+web+Based+application+asp+net+2+0+C+Re: Writing Editing Reading Resource .resx files In web Based application asp.net 2.0 C# <p>Server.MapPath is a asp.net application method. Are you making a webapplication or a desktop application?<br> </p> 2010-03-09T10:03:43-05:003725372http://forums.asp.net/p/1152145/3725372.aspx/1?Re+Writing+Editing+Reading+Resource+resx+files+In+web+Based+application+asp+net+2+0+C+Re: Writing Editing Reading Resource .resx files In web Based application asp.net 2.0 C# <p>application desktop ... didnt used this finally .. thanks for ur comeback<br> </p> 2010-03-11T09:42:05-05:004178849http://forums.asp.net/p/1152145/4178849.aspx/1?Re+Writing+Editing+Reading+Resource+resx+files+In+web+Based+application+asp+net+2+0+C+Re: Writing Editing Reading Resource .resx files In web Based application asp.net 2.0 C# <p>Thanks a lot ,</p> <p>Nice solution :)</p> 2010-11-22T08:10:40-05:004474789http://forums.asp.net/p/1152145/4474789.aspx/1?Re+Writing+Editing+Reading+Resource+resx+files+In+web+Based+application+asp+net+2+0+C+Re: Writing Editing Reading Resource .resx files In web Based application asp.net 2.0 C# <p>actually i need to include the name/value pair to .resx file(which is already created)</p> <p>i cant add it. whenever i add the existing name/value pairs get deleted and the one which is added at last is present.</p> <p>i have used below code</p> <p><span face="Consolas" size="2" color="#008000" style="font-size:x-small; color:#008000; font-family:Consolas"><span face="Consolas" size="2" style="font-size:x-small; font-family:Consolas"><span face="Consolas" size="2" style="font-size:x-small; font-family:Consolas"><span face="Consolas" size="2" style="font-size:x-small; font-family:Consolas"><span face="Consolas" size="2" style="font-size:x-small; font-family:Consolas"></span></span></span></span></span></p> <p><span face="Consolas" size="2" color="#2b91af" style="font-size:x-small; color:#2b91af; font-family:Consolas"><span face="Consolas" size="2" color="#2b91af" style="font-size:x-small; color:#2b91af; font-family:Consolas"><span face="Consolas" size="2" color="#2b91af" style="font-size:x-small; color:#2b91af; font-family:Consolas">ResXResourceWriter</span></span></span><span face="Consolas" size="2" style="font-size:x-small; font-family:Consolas"><span face="Consolas" size="2" style="font-size:x-small; font-family:Consolas"> resourceWriter = </span></span><span face="Consolas" size="2" color="#0000ff" style="font-size:x-small; color:#0000ff; font-family:Consolas"><span face="Consolas" size="2" color="#0000ff" style="font-size:x-small; color:#0000ff; font-family:Consolas"><span face="Consolas" size="2" color="#0000ff" style="font-size:x-small; color:#0000ff; font-family:Consolas">new</span></span></span><span face="Consolas" size="2" style="font-size:x-small; font-family:Consolas"><span face="Consolas" size="2" style="font-size:x-small; font-family:Consolas"> </span></span><span face="Consolas" size="2" color="#2b91af" style="font-size:x-small; color:#2b91af; font-family:Consolas"><span face="Consolas" size="2" color="#2b91af" style="font-size:x-small; color:#2b91af; font-family:Consolas"><span face="Consolas" size="2" color="#2b91af" style="font-size:x-small; color:#2b91af; font-family:Consolas">ResXResourceWriter</span></span></span><span face="Consolas" size="2" style="font-size:x-small; font-family:Consolas">(fileinfo.FullName);<span face="Consolas" size="2" style="font-size:x-small; font-family:Consolas"></span></span></p> <p><span face="Consolas" size="2" color="#008000" style="font-size:x-small; color:#008000; font-family:Consolas"></span></p> <p>resourceWriter.AddResource(<span face="Consolas" size="2" color="#a31515" style="font-size:x-small; color:#a31515; font-family:Consolas"><span face="Consolas" size="2" color="#a31515" style="font-size:x-small; color:#a31515; font-family:Consolas"><span face="Consolas" size="2" color="#a31515" style="font-size:x-small; color:#a31515; font-family:Consolas">&quot;key1&quot;</span></span></span><span face="Consolas" size="2" style="font-size:x-small; font-family:Consolas"><span face="Consolas" size="2" style="font-size:x-small; font-family:Consolas">, </span></span><span face="Consolas" size="2" color="#a31515" style="font-size:x-small; color:#a31515; font-family:Consolas"><span face="Consolas" size="2" color="#a31515" style="font-size:x-small; color:#a31515; font-family:Consolas"><span face="Consolas" size="2" color="#a31515" style="font-size:x-small; color:#a31515; font-family:Consolas">&quot;from extensibility code45&quot;</span></span></span><span face="Consolas" size="2" style="font-size:x-small; font-family:Consolas">);<span face="Consolas" size="2" style="font-size:x-small; font-family:Consolas"></span></span></p> <p><span face="Consolas" size="2" color="#008000" style="font-size:x-small; color:#008000; font-family:Consolas"></span></p> <p><span face="Consolas" size="2" color="#008000" style="font-size:x-small; color:#008000; font-family:Consolas"></span></p> <p><span face="Consolas" size="2" color="#008000" style="font-size:x-small; color:#008000; font-family:Consolas"></span></p> <p><span face="Consolas" size="2" color="#008000" style="font-size:x-small; color:#008000; font-family:Consolas"></span></p> <p><span face="Consolas" size="2" color="#008000" style="font-size:x-small; color:#008000; font-family:Consolas">resourceWriter.Generate();</span></p> <p><span face="Consolas" size="2" color="#008000" style="font-size:x-small; color:#008000; font-family:Consolas"></span></p> <p>resourceWriter.Close();</p> <p><span face="Consolas" size="2" color="#008000" style="font-size:x-small; color:#008000; font-family:Consolas"><span face="Consolas" size="2" style="font-size:x-small; font-family:Consolas"><span face="Consolas" size="2" style="font-size:x-small; font-family:Consolas">plx may i know any other way of incudeing resource to .resx file.</span></span></span></p> 2011-06-23T12:10:51-04:004482721http://forums.asp.net/p/1152145/4482721.aspx/1?Re+Writing+Editing+Reading+Resource+resx+files+In+web+Based+application+asp+net+2+0+C+Re: Writing Editing Reading Resource .resx files In web Based application asp.net 2.0 C# <p>HI all</p> <p>actually i have done it by reading .resx file as XML and adding the new node to it.</p> <p>which get updated to .resx file.</p> <p>thanks alot to all for their valuable solutions.</p> <p>&nbsp;</p> <p>thanks</p> 2011-06-29T05:14:09-04:00