Last post Jul 18, 2007 05:57 PM by aweil
Jul 18, 2007 08:20 AM|Mourad|LINK
How do I tel VS to generate resources for any inner text, e.g.:
<div> Hello ! </div>
do I have to put all text inside LABEL tags ?
Jul 18, 2007 01:46 PM|rstrahl|LINK
So yes you'll want to use labels or any other controls type around all static text.
Alternately you can also do something like this:
<div> <%= this.GetLocalResourceObject("HelloLabel") %></div>
although there are a few caveats to that scenario:
Hope this helps.
+++ Rick ---
Jul 18, 2007 05:57 PM|aweil|LINK
It may not be so clean (some overhead at run time), but you can replace your <div> with a <div runat="server">, which is quite easy to to project-wide with a "search and replace"...
Hope this helps,