Telerik UI for ASP。净AJAX?下载30天免费试用

本地化

RadCaptcha提供了一种基于原生ASP的快速、简单的本地化机制。网络本地化。ErrorMessage、告诉用户输入代码的Label和按钮标签都是从位于app_localresources目录中的资源文件中获得的,因此RadCaptcha自动切换到Web页面的区域性和UI区域性。

您可以通过导航到您的Telerik®ASP UI来查看这些文件。NET AJAX安装文件夹,然后在现场演示定位验证码\例子\本地化目录,因为它也包含示例音频代码。

每个本地化字符串也可以在运行时使用各自的服务器端属性进行修改:ErrorMessage, CaptchaTextBoxLabel, CaptchaAudioLinkButtonText和CaptchaLinkButtonText.这样就不需要创建新的本地化文件来更改单个字符串。例如:

RadCaptcha1。ErrorMessage = "错误的代码";RadCaptcha1。验证码TextBoxLabel = "Enter the code from the image"; RadCaptcha1.CaptchaAudioLinkButtonText = "Play the audio code"; RadCaptcha1.CaptchaLinkButtonText = "Generate a new image";
RadCaptcha1。ErrorMessage = "错误的代码" RadCaptcha1。验证码TextBoxLabel = "Enter the code from the image" RadCaptcha1.CaptchaAudioLinkButtonText = "Play the audio code" RadCaptcha1.CaptchaLinkButtonText = "Generate a new image"
在本文中
Baidu
map