Validation controls error message from Resource file and parameterized
Posted
by BigBoss
on Stack Overflow
See other posts from Stack Overflow
or by BigBoss
Published on 2010-05-31T16:45:13Z
Indexed on
2010/05/31
21:13 UTC
Read the original article
Hit count: 168
Hi,
I would like to get validation messages for validation controls from resource files. I know I can do that easily by following code snippet.
<%$ Resources:[filename prefix,]resource-key %>
or
<asp:Label ID="Label1" runat="server" meta:resourcekey="resource-key-prefix" />
But I would also like to parameterized it.
e.g. Above Resource Expression will give me message like "Fill Information.". What I have in resource file is "Fill {0} Information." which should show end user message like "Fill Address Information.".
© Stack Overflow or respective owner