I have the following:
<h1><asp:Literal runat="server" Text="<%$ Localize:LoginRequest %>"/></h1>
<fieldset>
<legend></legend>
<input runat="server" class="form-control" placeholder="E-mail" type="text" />
<input runat="server" class="form-control" placeholder="Password" name="password" type="password" value="" />
<button runat="server" type="submit" class="btn btn-default"><asp:Literal runat="server" Text="<%$ Localize:Submit %>"/></button>
</fieldset>
Localize
is a custom expression builder to translate my strings from a resource file. I would like to do the same for the placeholder
attribute. I know I can do this server-side, but I would like to have a similar method. Is there any available?
I know I could use:
<input class="form-control" placeholder="<%= GetString("Email") %>" type="text" />
but then I cannot use runat="server"
.