Hi Vivek and thank you for your reply:
Well, when I said "port an ASPX to an ASCX" is that actually I procede to create my Web User Controls in this way: I start a clean, from scratch aspx file and place all the controls that I need for my prospective Web User Control.
Obviously, I take away ANY HTML formating. Once I get the kind of appeareance that I expect from my ASCX control, all what I do is copy all the <asp: ...> </asp> code for each of the web controls that I rendered in the ASPX file.
I first test them as they are, which means: I don't create any resx file attached to it and rather test the ability of any aspx file to render the control. Most of the times, it works.
Once I confirm that the generated control that I created works, then I procede to do something simple: I try to generate the resx file directly from the "Tools->Generate Local Resource" command. This automatically creates the resource files for my control.
I can get the culture neutral resx file. But, when I try to create the localized versions, it doesn't work.
Let's say that I created a control called: MyControl.ascx, I generate the resx file automatically, which is placed in the "App_LocalResources" folder. I get the culture neutral resx file: MyControl.ascx.resx.
Accoording to the MSDN literature, all what I have to do is to copy the culture-neutral file and make the modifications needed to the other files. So, let's say that I need to do a localized version of the strings and messages for Spanish, Colombia (es-co). What I have to do is copy the culture-neutral file, modify the strings with the Spanish Version of what we want to show, and name the file MyControl.ascx.es-co.resx.
Well, guess what: it doesn't work.
i even tried to put a higher level culture, like, spanish,: MyControl.ascx.es.resx. The funny thing is that sometimes it works, and sometimes it doesn't.
and we are in the middle of a bad moment here, since we have to localize it to 12 different languages, and my translators are breething in my @ss and I haven't been able to get a straight answer to this....
Thanks for reading this !