localization of Microsoft controls

S

Steven Cheng[MSFT]

Hello Dave,

As for the Login control, it will not automatically display UI text
according to the page request's current UICulture. You need to do localize
it as normal webserver control. e.g.


<asp:Login ID="Login1" runat="server" meta:resourcekey="Login1Resource1">
</asp:Login>

And it has exposed many existing properties that we can localize with our
resource keys of page's local resoruce file.

=====in resx file ==
Login1Resource1.CreateUserText
Login1Resource1.FailureText Your login attempt was not successful. Please
try again.
Login1Resource1.HelpPageText
Login1Resource1.InstructionText
Login1Resource1.LoginButtonText Log In
Login1Resource1.PasswordLabelText FSDFDF
Login1Resource1.PasswordRecoveryText
Login1Resource1.PasswordRequiredErrorMessage Password is required.
Login1Resource1.RememberMeText Remember me next time.
Login1Resource1.TitleText Log In
Login1Resource1.ToolTip
Login1Resource1.UserNameLabelText FDFSFDS
Login1Resource1.UserNameRequiredErrorMessage User Name is required.
PageResource1.Title Untitled Page
==========================

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top