Concatenate aps.net expressions with literal text

0

I have this expression:

<asp:Label Text='<%# Eval("Analista") %>' runat="server" /><br />

The result is Approved or Disapproved. I would like to add the following word: by: In which the end result would be:

Approved / Disapproved by:

How do I do this? I tried with the by: within the single quotation mark, I tried with + inside the single quotation mark, I tried out and none of the alternatives worked out.

    
asked by anonymous 15.01.2015 / 17:17

1 answer

1

I suggest adding at the end of your <asp:Label /> the text "by:", getting:

<asp:Label Text='<%# Eval("Analista") %>' runat="server" /><label>&nbsp por:</label><br />

If you do not have problems with CSS, you will not have font problems

    
15.01.2015 / 17:51