Click here to Skip to main content
15,906,329 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.NET
<asp:Label ID="Label1" runat="server"  Font-Size="Large" 
                             ForeColor="#000066" CssClass="pos_left" Text='<%# Eval("Curr")%>' >
Posted
Updated 6-Nov-11 17:56pm
v2

ASP.NET
<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>
 
Share this answer
 
if that text is static and fixed for this whole column then write like this

XML
This is Curr value :<asp:Label ID="Label1" runat="server"  Font-Size="Large"
                             ForeColor="#000066" CssClass="pos_left" Text='<%# Eval("Curr")%>' >
 
Share this answer
 
Comments
EricThe 7-Nov-11 0:02am    
thank you dude
member60 7-Nov-11 0:07am    
cool
thatraja 7-Nov-11 11:55am    
Have 4!, But my solution is the better than yours

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900