I created a web page called server.aspx and an associated local resource file called server.aspx.resx. In the resource file, I defined the message "{0}". with a key mistake.
On my .aspx page, I access the line:
<asp:RequiredFieldValidator ControlToValidate="textboxName" runat="server" ErrorMessage="<%$ Resources:Error %> ID="validatorName">
Now I want to pass a value, for example, the name of the "Name" text box to the resource string, so for errormessage it says "Name is required."
Is it possible to pass a value to a string?
Torben
source share