Kentico 9 cms:cmsTextBox placeholder localization <p>I've duplicated the search box webpart so i can make changes. I'm trying to add a localization string to the placeholder attribute.</p> <p>This isn't working:</p> <pre><code>&lt;cms:CMSTextBox ID="txtWord" runat="server" EnableViewState="false" MaxLength="1000" ProcessMacroSecurity="false" placeholder="&lt;%= CMS.Helpers.ResHelper.GetString("kff.Search--PlaceHolderCopy")%&gt;" /&gt; </code></pre> <p>nor does this:</p> <pre><code>&lt;cms:CMSTextBox ID="txtWord" runat="server" EnableViewState="false" MaxLength="1000" ProcessMacroSecurity="false" placeholder='&lt;%= CMS.Helpers.ResHelper.GetString("kff.Search--PlaceHolderCopy")%&gt;' /&gt; </code></pre> <p>I have a JS Snippet that does work, but i'm hoping to avoid copy in JS files.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-html lang-html prettyprint-override"><code> var $searchField = $('.searchTextbox'); if ($('body').hasClass('ENCA')) { // search field placeholder copy $searchField.attr('placeholder', 'Search For Stuff'); } else { $searchField.attr('placeholder', 'Recherche'); }</code></pre> </div> </div> </p> <p>Can I add the localization string to the server tag, or should it be done in the code behind. I'm not sure the best location in the code behind for this either, I can't see a Page_Load block. </p>