localization of Microsoft controls

  • Thread starter Thread starter Guest
  • Start date Start date
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.
 
Back
Top