J
Jeff
hey
asp.net 3.5
I'm trying to localize a requiredFieldValidator, but I get this compile
error:
The resource object with key 'InvalidUserName' was not found
The resource 'InvalidUserName' exists in .resx files in this project
Project have 2 .resx files:
WebResources.resx
WebResources.nb-NO.resx
<globalization uiCulture="nb-NO" />
When I created these resource files, I first created the
WebResources.nb-NO.resx and then the WebResources.resx. I'm not sure the
order I created these files should have anything to do with the error. (I'm
a newbie).....
Here is the markup where I try to use the InvalidUserName key:
<asp:RequiredFieldValidator ID="rfvUserName" SetFocusOnError="true"
ErrorMessage='<%$ Resources:Resource, InvalidUserName %>'
ControlToValidate="UserName" Display="Dynamic"
ValidationGroup="PasswordRecovery1" runat="server"
any suggestins?
asp.net 3.5
I'm trying to localize a requiredFieldValidator, but I get this compile
error:
The resource object with key 'InvalidUserName' was not found
The resource 'InvalidUserName' exists in .resx files in this project
Project have 2 .resx files:
WebResources.resx
WebResources.nb-NO.resx
<globalization uiCulture="nb-NO" />
When I created these resource files, I first created the
WebResources.nb-NO.resx and then the WebResources.resx. I'm not sure the
order I created these files should have anything to do with the error. (I'm
a newbie).....
Here is the markup where I try to use the InvalidUserName key:
<asp:RequiredFieldValidator ID="rfvUserName" SetFocusOnError="true"
ErrorMessage='<%$ Resources:Resource, InvalidUserName %>'
ControlToValidate="UserName" Display="Dynamic"
ValidationGroup="PasswordRecovery1" runat="server"
>*</asp:RequiredFieldValidator>
any suggestins?