如何用资源文件中的文本附加文本 [英] How to append a text with a text from resource file

查看:64
本文介绍了如何用资源文件中的文本附加文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个资源文件,用于我的网站中使用的所有文本.现在,我想添加一个字符串,例如您的全名*",其中您的全名来自资源文件.我不能在资源文件中使用星号.我可以附上吗?


这是我当前的代码:< asp:Label ID ="lblName" runat ="server" AssociatedControlID ="txtName" Text =<%$ Resources:Registration,YourFullName%>" >
提前谢谢.

请让我知道是否需要澄清

I have a resource file for all the text used in my website. now I want to add a string like ''Your Full Name *'' where Your Full Name is from resource file. I can''t use star in the resource file. Will i be able to append it?


This is my current code : <asp:Label ID="lblName" runat="server" AssociatedControlID="txtName" Text="<%$ Resources:Registration, YourFullName%>" >
Thanks in advance.

Pleas let me know if you need clarification

推荐答案

Resources:Registration,YourFullName%>>
提前谢谢.

请让我知道是否需要澄清
Resources:Registration, YourFullName%>" >
Thanks in advance.

Pleas let me know if you need clarification


像这样尝试

Try like this

<asp:Label ID="lblName" runat="server" AssociatedControlID="txtName" Text="<%


资源:注册,YourFullName%>" > < span > * < /span >
Resources:Registration, YourFullName%>" ><span>*</span>


您可以应用样式,如果您想将其强制性地变成红色或类似的东西


you can apply style if you want to make it red for compulsory or something like that


这篇关于如何用资源文件中的文本附加文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆