Last post Jul 06, 2007 03:26 AM by vivek_iit
Jul 05, 2007 05:52 AM|gabrielh|LINK
I have a little problem with localization on nested tags. My HTML looks like below:
<li meta:resourceKey="PhotoNewsDate1" runat="server">19 Okt<br />
<a ID="PhotoNewsCaption1" meta:resourceKey="PhotoNewsCaption1" href="PhotoGallery_Detailed.aspx?searchTerm=recid:995912&page=1&order=0" runat="server">Detail of the sensor from the first half tracker inner barrel (TIB)</a>
I want to localize the entry in <li> for the date (19 Okt) and the text entry in the <a> tag. The problem is, if I use PhotoNewsDate1.InnerText in my localization file and set it, it will overwrite the whole innerText of <li> meaning deleting the <a> tag.
Using the <a> tag in the resources file would be possible but is not really clean... also if possible I don't want to use ASP controls, since I work with a WebDesigner that has no idea about ASP and want to have it as plain HTML as possible.
Is there a way to somehow tell the app to overwrite all InnerText except the ones that have a meta:resourceKey themselves?
Thanks a lot!
Jul 06, 2007 03:26 AM|vivek_iit|LINK
Given the conditions you listed, I don't think its possible what you want. So you only have the option of putting <a> tag too in the resource file which is not as bad as you think considering the options you have listed.
Hope this helps,