本文介绍了在评估中插入文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有以下代码,我想在值Text =''<%#Eval("Curr")%>''前面插入一些文本,就像我想将其显示为"This is Curr"值xxxx"
任何想法如何做到这一点?谢谢
Hi i have following code, I want to insert some text infront of the value Text=''<%# Eval("Curr")%>'' so like I want to show it like "This is Curr Value xxxx"
any ideas how to do that? thanks
<asp:Label ID="Label1" runat="server" Font-Size="Large"
ForeColor="#000066" CssClass="pos_left" Text='<%# Eval("Curr")%>' >
推荐答案
<asp:label id="Label1" runat="server" font-size="Large" xmlns:asp="#unknown">
ForeColor="#000066" CssClass="pos_left" Text='<%# String.Format("Current Value is {0}", Eval("Curr")) %>'></asp:label>
This is Curr value :<asp:Label ID="Label1" runat="server" Font-Size="Large"
ForeColor="#000066" CssClass="pos_left" Text='<%# Eval("Curr")%>' >
这篇关于在评估中插入文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!