using DataBinder.Eval inside validation

Black PhoenixX

New Member
I am creating a multi-language site with umbraco and I would like to use dictionary items with my validation error messages.I put the following code in the ErrorMessage field but it doesn't seem to work\[code\]<asp:RequiredFieldValidator ID="NameRequiredFieldValidator" runat="server" ErrorMessage='<%#(string)DataBinder.Eval(Container, library.GetDictionaryItem("NameValid")) %>' ControlToValidate="NameTextBox" ForeColor="Red" ValidationGroup="ContactUs" Display="Dynamic"></asp:RequiredFieldValidator>\[/code\]is there a way to do this?
 
Back
Top