AI OnAI Off
If you databind it, you could just do a regular translate:
<asp:TextBox ID="SearchText" onfocus="this.value=''" onblur="this.value='<%# Translate("/my/text") %>'" TabIndex="1" runat="server" CssClass="SearchField" Text="<%$ Resources: EPiServer, search.searchstring %>" />
Or - am I missing the point?
/Steve
Hi!
I need to localize text inside javascript code what should be executed on onblur event. That is my sample:
<asp:TextBox ID="SearchText" onfocus="this.value=''" onblur="this.value=(Here I need to get localized text from my language xml-file with translations)" TabIndex="1" runat="server" CssClass="SearchField" Text="<%$ Resources: EPiServer, search.searchstring %>" />
Thanks in advance!