Asp绑定标签 [英] Asp bind label

查看:75
本文介绍了Asp绑定标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨有没有人知道如何在asp控件中添加额外的文本?

hi does anyone know how to add extra text in the asp control ?

例如:< asp:Label ID =" lblBodyMessage1" RUNAT = QUOT;服务器" Text ='<%#Bind(" enddate")%>'CssClass =" aspLabel01">< / asp:Label>

eg:<asp:Label ID="lblBodyMessage1" runat="server" Text='<%# Bind("enddate") %>' CssClass="aspLabel01"></asp:Label>

上面的代码将打印出来合同的最后期限。但我需要在里面添加一个文本,当程序运行时,标签将打印出来:合同结束于(enddate),这意味着我必须编辑  Text ='<%#Bind(" enddate")%> '但我已经尝试了所有
的方法,添加+&但它仍然无法运作。

the code above will print out the enddate of the contract. but i need to add in a text inside and when the program run the label will print out :Contract end at (enddate) which mean i have to edit Text='<%# Bind("enddate") %>' but i have try all sort of ways by adding + & but it still cant works.

任何想法??

谢谢

推荐答案

试试  服务器" Text ='合同结束于:<%#Bind(" enddate")%>'
try   server" Text='contract end at : <%# Bind("enddate") %>'


这篇关于Asp绑定标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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